Test push for new branch configuration with "github.ref"
This commit is contained in:
parent
a0aa9a4ada
commit
2a2e67c020
1 changed files with 5 additions and 6 deletions
|
|
@ -67,18 +67,17 @@ jobs:
|
|||
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
|
||||
|
||||
- name: Deploy to Development
|
||||
if: steps.read_toml.outputs.value == 'development'
|
||||
if: github.ref == 'refs/heads/dev'
|
||||
run: |
|
||||
echo "Running steps for Development Environment"
|
||||
echo "user: $DEV_USER host: $DEV_HOST path: $DEV_PATH"
|
||||
echo "Deploying to Development Environment"
|
||||
rsync -avz ./public/ $DEV_USER@$DEV_HOST:$DEV_PATH
|
||||
env:
|
||||
RSYNC_RSH: 'ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no'
|
||||
|
||||
- name: Deploy to Production
|
||||
if: steps.read_toml.outputs.value == 'production'
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
echo "Running steps for Production Environment"
|
||||
echo "Deploying to Production Environment"
|
||||
rsync -avz ./public/ $PROD_USER@$PROD_HOST:$PROD_PATH
|
||||
env:
|
||||
RSYNC_RSH: 'ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue