summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build-and-test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-and-test.yml')
-rw-r--r--.github/workflows/build-and-test.yml16
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