-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate documentation snapshot for releases
Signed-off-by: Stephen Gallagher <[email protected]>
- Loading branch information
1 parent
fa66177
commit aaed38c
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release Tasks | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
docs: | ||
name: Publish Documentation | ||
runs-on: ubuntu-20.04 | ||
continue-on-error: false | ||
if: github.repository == 'fedora-modularity/libmodulemd' | ||
steps: | ||
- name: Checkout code repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout documentation repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: fedora-modularity/fedora-modularity.github.io | ||
ref: main | ||
path: fedora-modularity.github.io | ||
token: ${{ secrets.DOC_TOKEN }} | ||
|
||
- name: Get release version | ||
run: | | ||
echo "version=$(./get_version.sh)" >> $GITHUB_ENV | ||
- name: Generate documentation | ||
run: | | ||
./.ci/ci-docs.sh $version | ||
- name: Commit documentation | ||
uses: EndBug/add-and-commit@v6 | ||
with: | ||
branch: main | ||
token: ${{ secrets.DOC_TOKEN }} | ||
cwd: fedora-modularity.github.io | ||
author_name: Libmodulemd CI | ||
author_email: [email protected] | ||
message: libmodulemd docs for ${{ env.version }} | ||
add: libmodulemd/${{ env.version }} | ||
signoff: true | ||
push: true |