Skip to content

Commit

Permalink
feat(apidocs): generate and publish documentation on finishing release
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandkakonyi committed Oct 9, 2023
1 parent 1ea8ab8 commit d406a01
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/finish-release-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
- closed
branches:
- main

env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

concurrency:
group: finish-release-train-${{ github.ref_name }}
cancel-in-progress: true

jobs:
create_pr:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/v')
Expand Down Expand Up @@ -88,3 +91,13 @@ jobs:
tag: v${{ needs.create_pr.outputs.version_number }}
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog.outputs.release_notes }}

publish_documentation:
needs: [publish_release]
name: Generate API Documentation
uses: ./.github/workflows/generate-documentation.yml
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GCS_ACCOUNT: ${{ secrets.GCS_ACCOUNT }}
CF_TOKEN: ${{ secrets.CF_TOKEN }}
CF_ZONEID: ${{ secrets.CF_ZONEID }}
4 changes: 4 additions & 0 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:

workflow_dispatch:

env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

jobs:
generate-documentation:
env:
Expand Down

0 comments on commit d406a01

Please sign in to comment.