Skip to content

Commit

Permalink
deploy nuclia branch to staging
Browse files Browse the repository at this point in the history
use correct environment
use environment vars for configuration
bump checkout action
shorten workflow title
  • Loading branch information
fredvd authored Sep 9, 2023
1 parent b99a5d0 commit 72f8a20
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Build and deploy training documentation to training.plone.org
name: Build / deploy staging.training.plone.org

on:
push:
branches:
- "main"
- "nuclia"
workflow_dispatch:

jobs:
build_deploy:
runs-on: ubuntu-latest
environment: main
environment:
name: staging.training.plone.org
url: https://staging.training.plone.org
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -46,9 +49,9 @@ jobs:
with:
flags: "-avzr --delete"
options: ""
ssh_options: "-p ${{secrets.DEPLOY_PORT}}"
ssh_options: "-p ${{vars.DEPLOY_PORT_TRAINING}}"
src: "_build/html/"
dest: "${{secrets.DEPLOY_USER_TRAINING}}@${{secrets.DEPLOY_SERVER_TRAINING}}:${{secrets.DEPLOY_PATH_TRAINING}}"
dest: "${{vars.DEPLOY_USER_TRAINING}}@${{vars.DEPLOY_SERVER_TRAINING}}:${{vars.DEPLOY_PATH_TRAINING}}"

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

0 comments on commit 72f8a20

Please sign in to comment.