Skip to content

Updated deploy-gh-pages.yml #14

Updated deploy-gh-pages.yml

Updated deploy-gh-pages.yml #14

name: deploy-gh-pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: 3.13.8
channel: "stable"
- name: Build with Flutter
run: |
flutter config --enable-web
flutter channel beta
flutter create .
rm test/widget_test.dart
flutter pub get
flutter test
flutter build web
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web