Merge pull request #1 from ZertoPublic/NadineDove-patch-1

Update publish.yml
This commit is contained in:
Nadine Dove
2022-11-23 09:57:16 +02:00
committed by GitHub
+11
View File
@@ -51,6 +51,17 @@ jobs:
- name: echo-step - name: echo-step
run: echo "${{ github.event.release.target_commitish }}" run: echo "${{ github.event.release.target_commitish }}"
- name: uploading archive to prod
if: ${{ steps.branch_name.outputs.branch == 'main' || github.event.release.target_commitish == 'main'}}
uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: ${{ secrets.USERNAME }}
server: ${{ secrets.SERVER }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
local_path: ${{ github.event.repository.name }}_${{ steps.tag_name.outputs.tag }}.zip
remote_path: '${{ secrets.STG_UPLOAD_URL }}'
args: '-o ConnectTimeout=5'
- name: uploading archive to staging - name: uploading archive to staging
if: ${{ steps.branch_name.outputs.branch == 'develop' || github.event.release.target_commitish == 'develop' }} if: ${{ steps.branch_name.outputs.branch == 'develop' || github.event.release.target_commitish == 'develop' }}
uses: wlixcc/SFTP-Deploy-Action@v1.0 uses: wlixcc/SFTP-Deploy-Action@v1.0