1919 - ' *.gitmodules'
2020 workflow_dispatch :
2121 workflow_run :
22- workflows : ["Documentation"]
22+ workflows : ["Documentation", "pages-build-deployment" ]
2323 types : [completed]
2424
2525permissions :
26- contents : read
26+ contents : write
27+ pull-requests : write
28+ issues : write
29+ checks : write
30+ deployments : write
31+ discussions : write
32+ actions : write
2733 packages : write
2834 id-token : write
2935 security-events : write
@@ -229,12 +235,13 @@ jobs:
229235 name : Release
230236 runs-on : ubuntu-latest
231237 needs : [build, test]
232- if : github.ref == 'refs/heads/main' && ( github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run')
238+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
233239
234240 steps :
235241 - name : 📥 Checkout code
236242 uses : actions/checkout@v4
237243 with :
244+ fetch-depth : 0
238245 token : ${{ secrets.GITHUB_TOKEN }}
239246
240247 - name : Configure Git Author
@@ -255,25 +262,13 @@ jobs:
255262 run_install : false
256263
257264 - name : 📥 Install dependencies
258- run : |
259- pnpm install --frozen-lockfile
260- env :
261- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
265+ run : pnpm install --frozen-lockfile
262266
263- - name : 📦 Download build artifacts
264- uses : actions/download-artifact@v4
265- with :
266- name : build-artifacts-${{ github.sha }}
267- path : dist/
267+ - name : 🏗️ Build project
268+ run : pnpm run build
268269
269- - name : 📥 Download documentation
270- uses : dawidd6/action-download-artifact@v3
271- with :
272- name : documentation
273- path : docs/
274- workflow : docs.yml
275- workflow_conclusion : success
276- github_token : ${{ secrets.GITHUB_TOKEN }}
270+ - name : 📚 Generate fresh documentation
271+ run : pnpm run docs:build
277272
278273 - name : 🚀 Semantic Release
279274 env :
0 commit comments