diff --git a/.gitea/workflows/build-and-deploy-pipeline.yaml b/.gitea/workflows/build-and-deploy-pipeline.yaml index 7e798a3..1c5a2ff 100644 --- a/.gitea/workflows/build-and-deploy-pipeline.yaml +++ b/.gitea/workflows/build-and-deploy-pipeline.yaml @@ -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'