build(ci): publish documentation at release
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jul 2024 20:59:31 +0000 (22:59 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jul 2024 20:59:31 +0000 (22:59 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/publish-documentation.yml [moved from .github/workflows/generate-documentation.yml with 95% similarity]
.github/workflows/release-please.yml

similarity index 95%
rename from .github/workflows/generate-documentation.yml
rename to .github/workflows/publish-documentation.yml
index 677a61958503332aa73846ee2cb36321e58970a4..8692cf6f8939e621e7a3b52142bd350d43607722 100644 (file)
@@ -1,10 +1,11 @@
-name: Generate documentation
+name: Publish documentation
 
 on:
   workflow_dispatch:
+  workflow_call:
 
 jobs:
-  generate:
+  publish-documentation:
     runs-on: ubuntu-latest
 
     steps:
index 3f028e6802bfc11ca5d5d0139ff05733d71cdd76..7aab40174e8b1fb95885f549d04502b5391bd487 100644 (file)
@@ -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]