chore(deps): update peaceiris/actions-gh-pages action to v4 #60
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Enable flutter web | |
run: flutter config --enable-web | |
- name: Print Dart SDK version | |
run: dart --version | |
- name: Print Flutter SDK version | |
run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build web --release --base-href="/profile/" | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/web |