diff --git a/.github/workflows/docs-pr-preview.yml b/.github/workflows/docs-pr-preview.yml index 3afb6fd..878e225 100644 --- a/.github/workflows/docs-pr-preview.yml +++ b/.github/workflows/docs-pr-preview.yml @@ -35,7 +35,7 @@ jobs: - uses: ./.github/actions/deploy-to-gh-pages with: target: pr/${{ github.event.number }} - commit-message: Deploy PR #${{ github.event.number }} preview + commit-message: "Deploy PR #${{ github.event.number }} preview" - name: Post or update PR comment if: steps.preview.outputs.url != '' diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index 37ff5f9..5b6dd9e 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -1,9 +1,9 @@ name: Documentation (Release) on: - push: - tags: - - "v*" + workflow_run: + workflows: ["Generate changelog"] + types: [completed] permissions: contents: write @@ -15,14 +15,21 @@ concurrency: jobs: deploy: runs-on: ubuntu-latest + if: github.event.workflow_run.conclusion == 'success' steps: - - uses: actions/checkout@v6 - - - uses: astral-sh/setup-uv@v7 + - name: Checkout release tag + id: checkout + uses: TaiSakuma/checkout-version-tag@v1 + with: + trigger-tag: ${{ github.event.workflow_run.head_branch }} - name: Extract version id: version - run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" + run: echo "version=${TAG#v}" >> "$GITHUB_OUTPUT" + env: + TAG: ${{ steps.checkout.outputs.release-tag }} + + - uses: astral-sh/setup-uv@v7 - name: Build docs run: |