Skip to content

Commit aaed38c

Browse files
committed
Generate documentation snapshot for releases
Signed-off-by: Stephen Gallagher <[email protected]>
1 parent fa66177 commit aaed38c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release Tasks
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
docs:
8+
name: Publish Documentation
9+
runs-on: ubuntu-20.04
10+
continue-on-error: false
11+
if: github.repository == 'fedora-modularity/libmodulemd'
12+
steps:
13+
- name: Checkout code repo
14+
uses: actions/checkout@v2
15+
16+
- name: Checkout documentation repo
17+
uses: actions/checkout@v2
18+
with:
19+
repository: fedora-modularity/fedora-modularity.github.io
20+
ref: main
21+
path: fedora-modularity.github.io
22+
token: ${{ secrets.DOC_TOKEN }}
23+
24+
- name: Get release version
25+
run: |
26+
echo "version=$(./get_version.sh)" >> $GITHUB_ENV
27+
28+
- name: Generate documentation
29+
run: |
30+
./.ci/ci-docs.sh $version
31+
32+
- name: Commit documentation
33+
uses: EndBug/add-and-commit@v6
34+
with:
35+
branch: main
36+
token: ${{ secrets.DOC_TOKEN }}
37+
cwd: fedora-modularity.github.io
38+
author_name: Libmodulemd CI
39+
author_email: [email protected]
40+
message: libmodulemd docs for ${{ env.version }}
41+
add: libmodulemd/${{ env.version }}
42+
signoff: true
43+
push: true

0 commit comments

Comments
 (0)