Skip to content

Commit

Permalink
Generate documentation snapshot for releases
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
  • Loading branch information
sgallagher committed Jan 15, 2021
1 parent fa66177 commit aaed38c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
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: github-actions@github.com
message: libmodulemd docs for ${{ env.version }}
add: libmodulemd/${{ env.version }}
signoff: true
push: true

0 comments on commit aaed38c

Please sign in to comment.