Test push for new branch configuration with "github.ref"

This commit is contained in:
Andreas Hnida 2024-07-29 12:37:40 +02:00
commit 2a2e67c020

View file

@ -66,19 +66,18 @@ jobs:
with:
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
- name: Deploy to Development
if: steps.read_toml.outputs.value == 'development'
- name: Deploy to 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'