Skip to content

Update flutter-web-deploy.yml #5

Update flutter-web-deploy.yml

Update flutter-web-deploy.yml #5

name: Flutter Web Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.3'
- name: Install dependencies
run: flutter pub get
- name: Run the build runner
run: dart run build_runner build
- name: Build web app
run: flutter build web --base-href=/thank-you-token-app/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/web