From 3a83d94cd44b504e3b9a3f3b15e9dec4f8c33d49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 4 Jul 2024 22:59:31 +0200 Subject: [PATCH] build(ci): publish documentation at release MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ...{generate-documentation.yml => publish-documentation.yml} | 5 +++-- .github/workflows/release-please.yml | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) rename .github/workflows/{generate-documentation.yml => publish-documentation.yml} (95%) diff --git a/.github/workflows/generate-documentation.yml b/.github/workflows/publish-documentation.yml similarity index 95% rename from .github/workflows/generate-documentation.yml rename to .github/workflows/publish-documentation.yml index 677a6195..8692cf6f 100644 --- a/.github/workflows/generate-documentation.yml +++ b/.github/workflows/publish-documentation.yml @@ -1,10 +1,11 @@ -name: Generate documentation +name: Publish documentation on: workflow_dispatch: + workflow_call: jobs: - generate: + publish-documentation: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 3f028e68..7aab4017 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,6 +11,7 @@ permissions: jobs: release-please: runs-on: ubuntu-latest + if: github.repository == 'poolifier/poolifier' permissions: contents: write @@ -126,3 +127,7 @@ jobs: run: pnpm publish --no-git-checks --tag beta env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + publish-documentation: + uses: ./.github/workflows/publish-documentation.yml + needs: [publish-npm, publish-jsr] -- 2.34.1