File tree Expand file tree Collapse file tree 3 files changed +60
-27
lines changed Expand file tree Collapse file tree 3 files changed +60
-27
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Documentation Deployment
2+
3+ on :
4+ push :
5+ branches :
6+ - develop
7+ tags :
8+ - ' *'
9+
10+ concurrency :
11+ group : gh-pages
12+
13+ jobs :
14+ # On push/merge to develop: Deploy the current doc as default/latest
15+ deploy-doc-snapshots :
16+ name : Deploy Snapshot Documentation
17+ if : ${{ github.event_name == 'push' }}
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : write
21+
22+ steps :
23+ - name : Checkout Repository
24+ uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0
27+
28+ - name : Extract Maven Version
29+ id : version
30+ run : |
31+ VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
32+ echo "version=$VERSION" >> $GITHUB_OUTPUT
33+
34+ - name : Deploy Snapshot Documentation
35+ uses : secure-software-engineering/actions/documentation/handle-deployment@develop
36+ with :
37+ name : ${{ steps.version.outputs.version }}
38+ title : ${{ steps.version.outputs.version }}
39+
40+ # On tag creation (i.e. new release): Deploy a stable version to directory with tag
41+ deploy-doc-stable :
42+ name : Deploy Stable Documentation
43+ if : startsWith(github.ref, 'refs/tags/')
44+ runs-on : ubuntu-latest
45+ permissions :
46+ contents : write
47+
48+ steps :
49+ - name : Checkout Repository
50+ uses : actions/checkout@v4
51+ with :
52+ ref : ${{ github.ref }}
53+ fetch-depth : 0
54+
55+ - name : Deploy Stable Documentation
56+ uses : secure-software-engineering/actions/documentation/handle-deployment@develop
57+ with :
58+ name : ${{ github.ref_name }}
59+ title : ${{ github.ref_name }}
60+ stable : true
Original file line number Diff line number Diff line change 3232 - name : Create Documentation Preview
3333 uses : secure-software-engineering/actions/documentation/handle-pr-preview@develop
3434 with :
35- token : ${{ secrets.GITHUB_TOKEN }}
3635 preview-name : pr-${{ github.event.pull_request.number }}
3736 preview-title : Preview for PR-${{ github.event.pull_request.number }}
You can’t perform that action at this time.
0 commit comments