-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to publish frontend web app and update flutter version u…
…pdater script
- Loading branch information
1 parent
c524bfc
commit babb49c
Showing
2 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Deploy Flutter Web Frontend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'core/**' | ||
- 'frontend/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.24.2' | ||
channel: 'stable' | ||
|
||
- name: Get dependencies | ||
working-directory: ./frontend | ||
run: flutter pub get | ||
|
||
- name: Run build_runner | ||
working-directory: ./frontend | ||
run: flutter pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Build web app | ||
working-directory: ./frontend | ||
run: flutter build web | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./frontend/build/web |
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