diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5e7af09..3bb462d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,6 +51,17 @@ jobs: - name: echo-step 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 if: ${{ steps.branch_name.outputs.branch == 'develop' || github.event.release.target_commitish == 'develop' }} uses: wlixcc/SFTP-Deploy-Action@v1.0