From: Jérôme Benoit Date: Thu, 4 Jul 2024 20:59:31 +0000 (+0200) Subject: build(ci): publish documentation at release X-Git-Tag: v4.0.16~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3a83d94cd44b504e3b9a3f3b15e9dec4f8c33d49;p=poolifier.git build(ci): publish documentation at release Signed-off-by: Jérôme Benoit --- 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]