Update project name #34
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: Flutter Web Deploy | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Build web app | |
working-directory: random_workout | |
run: flutter build web --release --base-href /random_workout_generator/ | |
- name: Configure Git, commit, and push | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git --work-tree random_workout/build/web add --all | |
git commit -m "Automatic deployment by github-actions" | |
git push origin HEAD:gh-pages --force |