From 0a16f40bd6f840beb0e47fefe4d2001310f1556b Mon Sep 17 00:00:00 2001 From: Egge Date: Wed, 6 May 2026 12:32:56 +0200 Subject: [PATCH 1/2] chore: publish docs from release tags only --- .github/workflows/docs.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3932be53..849d0bf6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,13 +1,8 @@ name: Deploy docs to Github Pages on: - push: - branches: - - master - paths: - - 'packages/docs/**' - - '.github/workflows/docs.yml' - workflow_dispatch: + release: + types: [created] permissions: contents: read @@ -20,6 +15,7 @@ concurrency: jobs: build: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest defaults: run: @@ -28,6 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@v5 with: + ref: ${{ github.event.release.tag_name }} fetch-depth: 0 - uses: oven-sh/setup-bun@v2 with: From a3bdace7e5a41c649a30ed2a818ea48b941c096d Mon Sep 17 00:00:00 2001 From: Egge Date: Wed, 6 May 2026 13:06:03 +0200 Subject: [PATCH 2/2] chore: skip docs deploys for prereleases --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 849d0bf6..4a94d17f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,7 +2,7 @@ name: Deploy docs to Github Pages on: release: - types: [created] + types: [published] permissions: contents: read @@ -15,7 +15,7 @@ concurrency: jobs: build: - if: startsWith(github.ref, 'refs/tags/') + if: ${{ startsWith(github.ref, 'refs/tags/') && !github.event.release.prerelease }} runs-on: ubuntu-latest defaults: run: