Update web.yml #28
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 Zenit UI for Web | |
run: flutter build web --release | |
working-directory: ./example | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './example/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 |