Skip to content

fix: cache init

fix: cache init #83

Workflow file for this run

name: Web Build
on:
release:
types: [created]
push:
branches:
- release/web
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.COMMIT_SECRET}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.COMMIT_SECRET }}
publish_dir: ./release/web
# - uses: actions/checkout@v2
# - uses: subosito/flutter-action@v1
# - run: flutter pub get
# - run: flutter test
# - run: flutter build web --release
# - run: |
# cd build/web
# git init
# # type configurations: your user.email and user.name followed lines
# # git config --global user.email your_email
# # git config --global user.name your_name
# git config --global user.email ${{secrets.USER_EMAIL}}
# git config --global user.name ${{secrets.USER_NAME}}
# git status
# # change this remote url for examle your remote url is then the following:
# git remote add origin https://${{secrets.COMMIT_SECRET}}@github.com/xsoulspace/word_by_word_game.git
# git checkout -b gh-pages
# git add --all
# git commit -m "update"
# git push origin gh-pages -f