chore: upgrade fvm v3 (#30) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish_github_pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build + Publish Web | |
env: | |
USER_EMAIL: defuncart@gmail.com | |
USER_NAME: "James Leahy" | |
GH_USERNAME: defuncart | |
REPO_NAME: shogi_proverbs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ./.github/actions/set_up_flutter | |
- name: Build + Commit | |
run: | | |
flutter build web --release | |
cd build/web | |
git init | |
git config --global user.email ${{ env.USER_EMAIL }} | |
git config --global user.name "${{ env.USER_NAME }}" | |
git status | |
git remote add origin https://${{ secrets.commit }}@github.com/${{ env.GH_USERNAME }}/${{ env.REPO_NAME }}.git | |
git checkout -b gh-pages | |
git add -A | |
git commit -m "`date`" | |
git push origin gh-pages -f |