Skip to content

Update cd.yml

Update cd.yml #4

Workflow file for this run

name: CD
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Flutter Build Web
run: flutter build web --release
- name: Upload Artifact
uses: actions/[email protected]
with:
path: build/web
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4