-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (33 loc) · 972 Bytes
/
gh-pages-dev.yml
File metadata and controls
41 lines (33 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: github pages dev
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout dev branch
uses: actions/checkout@v4
with:
ref: dev
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages-repo
- name: Setup Dart SDK # Using Dart 3.8 to match pubspec.yaml constraint
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
with:
sdk: 3.8
- name: Install dependencies
run: dart pub get
- name: Install webdev
run: dart pub global activate webdev
- name: Build into gh-pages repo
run: dart pub global run webdev build -o web:gh-pages-repo/dev
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: gh-pages-repo