Skip to content

Commit

Permalink
Use new live environment name
Browse files Browse the repository at this point in the history
use vars instead of secrets for configuration vars
vars have been added to github repo
bump checkout action to v4
  • Loading branch information
fredvd authored Sep 9, 2023
1 parent d08a096 commit e8f3450
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ on:
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 +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 e8f3450

Please sign in to comment.