Skip to content

Commit 06a64b5

Browse files
committed
Update doc actions to most recent versions
1 parent 9f2a758 commit 06a64b5

File tree

3 files changed

+60
-27
lines changed

3 files changed

+60
-27
lines changed

.github/workflows/deploy-branch-snapshot.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

.github/workflows/doc_preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)