Skip to content

chore: update version #19

chore: update version

chore: update version #19

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
# - 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/last_answer.git
# git checkout -b gh-pages
# git add --all
# git commit -m "update"
# git push origin gh-pages -f