File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : " Documentation"
3+
4+ on :
5+ push :
6+ branches :
7+ - " v1"
8+
9+ workflow_call :
10+
11+ workflow_dispatch :
12+
13+ jobs :
14+ publish :
15+ name : " Publish temporary documentation for v1"
16+
17+ runs-on : " ubuntu-latest"
18+
19+ steps :
20+ - name : " Check out repository"
21+ uses : " actions/checkout@v3"
22+ with :
23+ ref : v1 # Checkout the v1 branch
24+ fetch-depth : 0 # Fetch all branches and tags
25+
26+ - name : " Build documentation with Antora"
27+ uses : " docker://ghcr.io/camptocamp/devops-stack-antora:v3.1.0"
28+ with :
29+ args : " make docs"
30+
31+ - name : " Upload generated artifact"
32+ # if: "github.event_name == 'pull_request'"
33+ uses : " actions/upload-artifact@v3"
34+ with :
35+ name : " documentation"
36+ path : " ${{ github.workspace }}/public/docs"
37+
38+ - name : " Deploy documentation to GitHub Pages"
39+ # if: "(github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'v1'"
40+ uses : " JamesIves/github-pages-deploy-action@v4.4.1"
41+ with :
42+ branch : " gh-pages"
43+ folder : " public/docs"
44+ target-folder : " docs-v1"
45+ commit-message : " ci: publish documentation for ${{ github.sha }}"
You can’t perform that action at this time.
0 commit comments