Release v0.5.0 #7
Workflow file for this run
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 | |
# paths: | |
# - '**.dart' | |
# - '**.yaml' | |
# - '**.yml' | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Update version | |
run: dart scripts/update_version.dart | |
- name: Build | |
run: flutter build web --release --web-renderer html --csp | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/web |