-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (34 loc) · 1.06 KB
/
deploy-docs.yml
File metadata and controls
42 lines (34 loc) · 1.06 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
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}-deploy-docs"
cancel-in-progress: true
on:
workflow_call:
env:
RELEASE: 1
jobs:
deploy-docs:
if: github.repository == 'wireapp/core-crypto' && (github.ref == 'refs/heads/main' || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v')))
runs-on: ubuntu-latest
env:
GIT_TAG: ${{ github.ref_type == 'tag' && github.ref_name || 'main' }}
steps:
- name: checkout repository
uses: actions/checkout@v6
- name: download pre-rendered docs
uses: actions/download-artifact@v8
with:
pattern: '{typescript,swift,kotlin,rust}'
path: "./target/doc/${{ env.GIT_TAG }}"
merge-multiple: false
- name: copy static files
run: |
cp docs/*.md target/doc/
- name: deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: target/doc
keep_files: true
force_orphan: false
enable_jekyll: true