Skip to content

Commit

Permalink
adding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Nov 18, 2023
1 parent 9cfbc4b commit ace7468
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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/web

0 comments on commit ace7468

Please sign in to comment.