Skip to content

Commit 3d9c985

Browse files
committedOct 8, 2024
PI-2373: Add draft publishing
1 parent aeb24b4 commit 3d9c985

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎.github/workflows/publish-docs.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060

6161
deploy-docs:
6262
runs-on: ubuntu-latest
63-
if: github.ref_name == 'main' || (github.event_name == 'workflow_dispatch')
6463
needs:
6564
- build-docs
6665
steps:
@@ -74,6 +73,14 @@ jobs:
7473
name: openapi
7574
path: tech-docs-build/openapi/
7675
- name: Deploy
76+
if: github.ref_name == 'main'
7777
uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
7878
with:
7979
folder: tech-docs-build
80+
target-folder: tech-docs
81+
- name: Deploy branch
82+
if: github.ref_name != 'main'
83+
uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
84+
with:
85+
folder: tech-docs-build
86+
target-folder: drafts/${{ github.ref_name }}

0 commit comments

Comments
 (0)