Update CHANGELOG.md #47
Workflow file for this run
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
name: Publish release candidate docs to GitHub Pages | |
on: | |
push: | |
branches: 'release/**' | |
jobs: | |
get-release-version: | |
name: Get release version | |
runs-on: ubuntu-latest | |
outputs: | |
release-version: ${{ steps.release-name.outputs.RELEASE_VERSION }} | |
steps: | |
- name: Extract release version from branch name | |
id: release-name | |
run: | | |
BRANCH_NAME='${{ github.ref_name }}' | |
echo "RELEASE_VERSION=v${BRANCH_NAME#release/}" >> "$GITHUB_OUTPUT" | |
publish-to-gh-pages: | |
name: Publish docs to `rc-${{ needs.get-release-version.outputs.release-version }}` directory of `gh-pages` branch | |
permissions: | |
contents: write | |
uses: ./.github/workflows/publish-docs.yml | |
needs: get-release-version | |
with: | |
destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} |