-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.23 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout Obsidian Pool Notes
uses: actions/checkout@v4
with:
repository: wodeni/nimo-obsidian-notes-pool
token: ${{ secrets.GH_PAT_OBSIDIAN_POOL }}
path: ./pool-notes/
- name: Log directory structure
run: |
ls -al
ls -al pool-notes/
- name: Install and Build
run: |
yarn
yarn build
- name: Copy index.html to 404.html for routing
run: |
cp dist/index.html dist/404.html
- name: Deploy website
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
working-directory: main
branch: gh-pages
folder: dist
target-folder: .
- name: Add .nojekyll
run: |
mkdir extra/
touch extra/.nojekyll
- name: Deploy .nojekyll
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: dist
clean: false
working-directory: main