From b9ae9c3b3cafd272881e790427db8ceb107a8597 Mon Sep 17 00:00:00 2001 From: Dashie Date: Mon, 15 Mar 2021 13:31:27 +0100 Subject: aaa --- .github/workflows/build-and-test.yml | 16 ++++++++++++++-- 1 file 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 -- cgit v1.2.3