Fix context menu problems on web (#380) #464
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: Build and Deploy to Web | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
name: Checkout repository | |
- uses: subosito/[email protected] | |
with: | |
channel: master | |
name: Set up Flutter | |
- name: Set up Pages | |
uses: actions/configure-pages@v1 | |
- name: Get dependencies | |
run: flutter pub get && flutter pub upgrade | |
- name: Build Pangolin for Web | |
run: flutter build web --release | |
- name: Add CNAME | |
run: echo "web.dahliaos.io" >> build/web/CNAME | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './build/web/' | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@main |