Handle RoyaltiesPaid events #81
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 Web Build and Deploy | |
on: | |
push: | |
branches: | |
- main # Replace with your main branch name | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: Build Flutter Web | |
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.16.1' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run build_runner | |
run: flutter pub run build_runner build | |
- name: Build Flutter Web | |
run: flutter build web --release --base-href / | |
- name: Upload Web Build Files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: web-release | |
path: ./build/web | |
deploy: | |
name: Deploy Web Build on gh-pages | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download Web Release | |
uses: actions/download-artifact@v2 | |
with: | |
name: web-release | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
# upload entire directory | |
path: '.' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |