Skip to content

update: github workflows #4

update: github workflows

update: github workflows #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- develop
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.9'
channel: 'stable'
- name: Flutter build web
working-directory: ./example
run: |
flutter config --enable-web
flutter pub get
flutter build web --release
- name: Deploy
working-directory: ./example
uses: peaceiris/actions-gh-pages@v3

Check failure on line 27 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 27, Col: 9): Unexpected value 'uses' .github/workflows/deploy.yml (Line: 28, Col: 9): Unexpected value 'with'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
force_orphan: true
user_name: 'github-ci[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Publish to gh-pages'