Skip to content

Commit c754192

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 5 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 }}
@@ -141,9 +141,6 @@ jobs:
141141
with:
142142
name: kotlinx-rpc-assembled
143143

144-
- name: Unzip artifact
145-
run: unzip -O UTF-8 -qq '${{ env.ASSEMBLE_ARTIFACT }}' -d ${{ env.ASSEMBLE_DIR }}
146-
147144
- name: Setup Pages
148145
uses: actions/configure-pages@v5
149146

@@ -157,7 +154,7 @@ jobs:
157154
uses: actions/deploy-pages@v4
158155

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

0 commit comments

Comments
 (0)