Merge pull request #6 from dpajak99/feature/clipboard #11
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 Flutter Web App to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- name: ⚙️ Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.3' | |
channel: 'stable' | |
- name: 📦 Get Flutter Dependencies | |
working-directory: example | |
run: flutter pub get | |
- name: 👷 Build Flutter Web App | |
working-directory: example | |
run: flutter build web --release --base-href /sheets/ | |
- name: ☁️ Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: example/build/web | |
publish_branch: gh-pages |