Skip to content

Commit 1b15d74

Browse files
committed
git: ensure publish job runs if either build job succeeds
1 parent 9f4eaf9 commit 1b15d74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
name: "Publish"
269269
runs-on: ubuntu-latest
270270
needs: [build-docusaurus-site, build-docusaurus-site-formal-spec]
271-
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_run'
271+
if: always() && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_run')
272272
steps:
273273
- name: 📥 Download Docusaurus build
274274
uses: actions/download-artifact@v4
@@ -277,6 +277,7 @@ jobs:
277277
path: ./github-pages
278278

279279
- name: 🚀 Publish GitHub Pages
280+
if: success()
280281
uses: peaceiris/actions-gh-pages@v4
281282
with:
282283
github_token: ${{ secrets.GITHUB_TOKEN || github.token }}

0 commit comments

Comments
 (0)