Skip to content

updated about

updated about #50

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
- name: Install Dependencies
run: flutter pub get
- name: Build Web Release
run: flutter build web
- name: Upload production-ready build files
uses: actions/upload-artifact@v2
with:
name: production-files
path: ./build/web
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: production-files
path: ./build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# github_token: $ {{ secrets.GITHUB_TOKEN }}
# github-token: $ {{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build