-
Notifications
You must be signed in to change notification settings - Fork 80
53 lines (49 loc) · 1.43 KB
/
docs.yaml
File metadata and controls
53 lines (49 loc) · 1.43 KB
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
name: docs
on:
push:
branches: [ master, docs ]
jobs:
docfx:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [windows]
archive-ref: [main]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Checkout `docs` branch
uses: actions/checkout@v4
with:
ref: docs
path: docs
- name: Read Versions
run: |
HKV=$(cat ./hollowknight.version)
echo "HK_VERSION=$HKV" >> $GITHUB_ENV
- name: Checkout Binaries
uses: actions/checkout@v4
with:
repository: hk-modding/hk-binary-archives
ref: ${{ matrix.archive-ref }}
ssh-key: ${{ secrets.BINARY_ARCHIVE_DEPLOY_KEY }}
sparse-checkout: |
${{ env.HK_VERSION }}/managed.${{ matrix.platform }}.tar.gz
sparse-checkout-cone-mode: false
path: ./hk-binary-archives
persist-credentials: false
- name: Unpack Archive
run: |
mkdir Vanilla
cd ./Vanilla
tar -xzf ../hk-binary-archives/${{ env.HK_VERSION }}/managed.${{ matrix.platform }}.tar.gz
- name: Build docs
uses: nunit/docfx-action@v3.4.2
with:
args: docs/docfx.json
- name: Publish
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: DocFX
force_orphan: true