We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb24b4 commit 3d9c985Copy full SHA for 3d9c985
.github/workflows/publish-docs.yml
@@ -60,7 +60,6 @@ jobs:
60
61
deploy-docs:
62
runs-on: ubuntu-latest
63
- if: github.ref_name == 'main' || (github.event_name == 'workflow_dispatch')
64
needs:
65
- build-docs
66
steps:
@@ -74,6 +73,14 @@ jobs:
74
73
name: openapi
75
path: tech-docs-build/openapi/
76
- name: Deploy
+ if: github.ref_name == 'main'
77
uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
78
with:
79
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