Skip to content

Commit

Permalink
Merge branch 'main' into Update-training-mastering-plone-develpment
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess authored Sep 25, 2023
2 parents eacc709 + 6c8ca08 commit 3a2560a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 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 training.plone.org

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

jobs:
build_deploy:
runs-on: ubuntu-latest
environment: main
environment:
name: training.plone.org
url: https://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 @@ -47,9 +50,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 3a2560a

Please sign in to comment.