Tue Feb 13 20:47:21 SAST 2024 - on 404 error redirect using a script.… #18
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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
- run: flutter build web --release | |
- run: git config user.name github-actions | |
- run: git config user.email [email protected] | |
- run: git --work-tree build/web add --all | |
- run: git commit -m "Automatic deployment by github-actions - ${{ github.sha }}" | |
- run: git push origin HEAD:gh-pages --force |