-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (43 loc) · 1.39 KB
/
main.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
37
38
39
40
41
42
43
44
name: CI & CD
on:
push:
branches:
- master
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Data repository
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout Program repository
uses: actions/checkout@v3
with:
repository: ${{ secrets.GIT_URI }}
path: super/
- name: Merge Data & Program
run: |
shopt -s extglob
mv !(super) super/source/
shopt -s dotglob
rm -rf .git/ .github/
mv super/* .
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install & Build
run: pnpm i && pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./public
cname: fcc-cd.dev
external_repository: ${{ secrets.GIT_URI }}
publish_branch: master
personal_token: ${{ secrets.PERSONAL_TOKEN }}
force_orphan: true