Skip to content

Commit def0e3c

Browse files
committed
Fix publish-docs workflow
Updates publish_docs.yml to run on pull requests and pushes. In personal forks configure-pages action and the deploy job are skipped so the workflow can succeed. The publish job is only run on pushes to the atomvm/atomvm_rebar3_plugin master branch. Signed-off-by: Winford <[email protected]>
1 parent d687c9f commit def0e3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish_docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
push:
1313
branches:
1414
- 'master'
15+
pull_request:
16+
branches:
17+
- 'master'
1518

1619
# Allows you to run this workflow manually from the Actions tab
1720
workflow_dispatch:
@@ -32,6 +35,7 @@ jobs:
3235
uses: actions/checkout@v5
3336

3437
- name: "Setup Pages"
38+
if: ${{ github.repository == 'atomvm/atomvm_rebar3_plugin' }}
3539
uses: actions/configure-pages@v5
3640

3741
- name: "Build Docs"
@@ -46,6 +50,7 @@ jobs:
4650
path: ./docs
4751

4852
deploy:
53+
if: ${{ github.repository == 'atomvm/atomvm_rebar3_plugin' }}
4954
# Add a dependency to the build job
5055
needs: build
5156

@@ -62,6 +67,5 @@ jobs:
6267
uses: actions/configure-pages@v5
6368

6469
- name: Deploy to GitHub Pages
65-
if: ${{ github.repository == 'atomvm/atomvm_rebar3_plugin' }}
6670
id: deployment
6771
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)