-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.22 KB
/
preview.yml
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
name: Preview Site
on:
push:
branches:
- "dev=main"
workflow_dispatch:
jobs:
preview-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter --version
- name: Enable Flutter Web
working-directory: "KitX Website Flutter/kitx_website"
run: flutter config --enable-web
- name: Download Dependencies
working-directory: "KitX Website Flutter/kitx_website"
run: flutter pub get
- name: Build
working-directory: "KitX Website Flutter/kitx_website"
run: flutter build web --base-href "/KitX-Website/"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUBTOKEN }}
publish_dir: "./KitX Website Flutter/kitx_website/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'