no deploy-testing if on main branch

This commit is contained in:
boyska 2025-03-08 16:22:21 +01:00
parent 31ac88ad9b
commit 3c86829fde

View file

@ -24,7 +24,7 @@ jobs:
deploy-production:
runs-on: ubuntu-22.04
needs: [build]
if: github.ref == 'refs/heads/main'
if: "github.ref == 'refs/heads/main'"
steps:
- uses: https://code.forgejo.org/actions/download-artifact@v3
- name: install rclone
@ -37,6 +37,7 @@ jobs:
deploy-testing:
runs-on: ubuntu-22.04
needs: [build]
if: "github.ref != 'refs/heads/main'"
env:
SSH_KEY: ${{secrets.TESTDEPLOY_SSH_PRIVATE_KEY}}
steps: