Skip to content

chore: Update permissions and concurrency in deploy_deck.yaml workflow #2

chore: Update permissions and concurrency in deploy_deck.yaml workflow

chore: Update permissions and concurrency in deploy_deck.yaml workflow #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:

Check failure on line 9 in .github/workflows/deploy_deck.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_deck.yaml

Invalid workflow file

You have an error in your yaml syntax on line 9
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
- name: Install dependencies
run: flutter pub get
- name: Build web app
run: |
cd deck
flutter build web --release
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: deck/build/web