Skip to content

Commit 58b01f2

Browse files
authored
Merge pull request #58 from UncleGrumpy/publish_docs
Keep pre-release docs on github pages up to date with master branch
2 parents 9f9ee89 + 7819472 commit 58b01f2

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' && github.event_name == 'push' }}
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)