Skip to content

Commit aaccb13

Browse files
committed
Update condition for pages publication
1 parent 6fcb792 commit aaccb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
retention-days: 7
130130

131131
deploy:
132-
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && !inputs.dry_run
132+
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release-') && !inputs.dry_run
133133
environment:
134134
name: github-pages
135135
url: ${{ steps.deployment.outputs.page_url }}
@@ -157,7 +157,7 @@ jobs:
157157
uses: actions/deploy-pages@v4
158158

159159
publish-indexes:
160-
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && !inputs.dry_run
160+
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release-') && !inputs.dry_run
161161
needs: [ build, test, assemble, deploy ]
162162
runs-on: ubuntu-latest
163163
container:

0 commit comments

Comments
 (0)