forked from hackit/sito-hackit-25
no deploy-testing if on main branch
This commit is contained in:
parent
31ac88ad9b
commit
3c86829fde
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue