-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 957 Bytes
/
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
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: corepack enable
- run: yarn install
- uses: actions/checkout@v4
with:
repository: henrycatalinismith/henrycatalinismith.github.io
sparse-checkout: tailbone
path: _site
- run: yarn build
- uses: peaceiris/actions-gh-pages@v3
with:
exclude_assets: ".github,.gitignore,.npmrc,Assets.xcassets,Info.plist,Launch Screen.storyboard,Preview Assets.xcassets,Tailbone.xcodeproj,TailboneApp.swift,_headers,manifest.webmanifest,media,netlify.toml,node_modules,package.json,readme.md,yarn.lock"
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site