Skip to content

Commit 0bf293d

Browse files
authored
Use environment docs.plone.org (plone#1524)
Use environment vars for plain variables, only the deploy key is secret. Environment vars have been configured Remove branch 6-dev from 'on:' filter rule
1 parent 425871a commit 0bf293d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build_deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ name: Build and deploy Plone 6 documentation to 6.docs.plone.org
33
on:
44
push:
55
branches:
6-
- "6-dev"
76
- "6.0"
87

98
jobs:
109
build_deploy:
1110
runs-on: ubuntu-latest
11+
environment:
12+
name: docs.plone.org
13+
url: https://docs.plone.org
1214
steps:
1315
- uses: actions/checkout@v3
1416
- name: Setup Graphviz
@@ -67,9 +69,9 @@ jobs:
6769
with:
6870
flags: '-avzr --delete'
6971
options: ''
70-
ssh_options: '-p ${{secrets.DEPLOY_PORT}}'
72+
ssh_options: '-p ${{vars.DEPLOY_PORT}}'
7173
src: '_build/html/'
72-
dest: '${{secrets.DEPLOY_USER_DOCS}}@${{secrets.DEPLOY_SERVER_DOCS}}:${{secrets.DEPLOY_PATH_DOCS}}'
74+
dest: '${{vars.DEPLOY_USER_DOCS}}@${{vars.DEPLOY_SERVER_DOCS}}:${{vars.DEPLOY_PATH_DOCS}}'
7375

7476
- name: Display status from deploy
7577
run: echo "${{ steps.deploy.outputs.status }}"

0 commit comments

Comments
 (0)