Skip to content

Commit abb8ccf

Browse files
authored
add conditionals for publishing
1 parent 50adef1 commit abb8ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/photon-api-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ jobs:
105105
pattern: docs-*
106106
- run: find .
107107
- name: Publish Docs To Development
108-
# if: github.ref == 'refs/heads/main'
108+
if: github.ref == 'refs/heads/main'
109109
uses: up9cloud/[email protected]
110110
env:
111111
HOST: ${{ secrets.WEBMASTER_SSH_HOST }}
112112
USER: ${{ secrets.WEBMASTER_SSH_USERNAME }}
113113
KEY: ${{secrets.WEBMASTER_SSH_KEY}}
114114
TARGET: /var/www/html/photonvision-docs/development/
115115
- name: Publish Docs To Release
116-
# if: startsWith(github.ref, 'refs/tags/v')
116+
if: startsWith(github.ref, 'refs/tags/v')
117117
uses: up9cloud/[email protected]
118118
env:
119119
HOST: ${{ secrets.WEBMASTER_SSH_HOST }}

0 commit comments

Comments
 (0)