forked from ignis-sh/ignis
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 814 Bytes
/
_deploy_docs.yaml
File metadata and controls
35 lines (30 loc) · 814 Bytes
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
name: Deploy Documentation
on:
workflow_call:
inputs:
DOC_TAG:
required: true
type: string
jobs:
build:
uses: ./.github/workflows/_build_docs.yaml
with:
DOC_TAG: ${{ inputs.DOC_TAG }}
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Documentation Artifact
uses: actions/download-artifact@v4
with:
name: documentation-${{ inputs.DOC_TAG }}
path: docs/_build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
destination_dir: ${{ inputs.DOC_TAG }}
allow_empty_commit: true
force_orphan: false
keep_files: true