diff options
author | Dashie <dashie@sigpipe.me> | 2021-03-15 13:31:27 +0100 |
---|---|---|
committer | Dashie <dashie@sigpipe.me> | 2021-03-15 13:31:27 +0100 |
commit | b9ae9c3b3cafd272881e790427db8ceb107a8597 (patch) | |
tree | 974c72fcfd63187512782eca1ccf0246092a5931 | |
parent | 4be08174b90516946395c28e12531d1dc79502ce (diff) |
aaa
-rw-r--r-- | .github/workflows/build-and-test.yml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4f8f4526..b96c17b0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -97,15 +97,27 @@ jobs: working-directory: front if: github.ref == 'refs/heads/master' - - name: Deploy front + - name: Deploy front (tag) uses: burnett01/rsync-deployments@4.1 with: switches: -avc - path: front-dist-*.zip + path: front-dist-${{ github.event.release.tag_name }}.zip remote_path: / remote_host: ${{ secrets.ASSETS_DEPLOY_HOST }} remote_user: ${{ secrets.ASSETS_DEPLOY_USER }} remote_key: ${{ secrets.ASSETS_DEPLOY_KEY }} + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + + - name: Deploy front (master) + uses: burnett01/rsync-deployments@4.1 + with: + switches: -avc + path: front-dist-master.zip + remote_path: / + remote_host: ${{ secrets.ASSETS_DEPLOY_HOST }} + remote_user: ${{ secrets.ASSETS_DEPLOY_USER }} + remote_key: ${{ secrets.ASSETS_DEPLOY_KEY }} + if: github.ref == 'refs/heads/master' backend: name: Test build backend |