Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Publish Example
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart test
- run: cd example && dart pub get
- run: dart pub global activate webdev
- run: cd example && webdev build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/build