Update publish.yml
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user