Skip to content

Delete .github/workflows/static.yml #2

Delete .github/workflows/static.yml

Delete .github/workflows/static.yml #2

name: Deploy Flutter Web with GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.x' # You can adjust the Flutter version if needed
- name: Install dependencies
run: flutter pub get
- name: Build Flutter web
run: flutter build web
- name: Archive web build
uses: actions/upload-artifact@v2
with:
name: web-build
path: build/web
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download web build artifact
uses: actions/download-artifact@v2
with:
name: web-build
path: build/web
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.MY_TOKEN }}
publish_dir: ./build/web