From 77839d17e1cfdc0242f94daec46d26044817ef35 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sun, 13 Sep 2020 07:53:51 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3dccaf0c..454b45b0b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,12 +90,13 @@ jobs: uses: burnett01/rsync-deployments@4.1 with: switches: -av --delete-after - remote_path: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}} + remote_path: deploy/release/${{env.SOURCE_TAG}}/${{env.OMR_TARGET}} path: ./openmptcprouter/${{env.OMR_TARGET}}/source/bin/ remote_key: ${{ secrets.PRIVATE_KEY }} remote_user: deploy remote_host: ${{ secrets.OMR_DEPLOY_HOST }} remote_port: ${{ secrets.OMR_DEPLOY_PORT }} + env: SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }} SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }} SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }} @@ -110,6 +111,7 @@ jobs: remote_user: deploy remote_host: ${{ secrets.OMR_DEPLOY_HOST }} remote_port: ${{ secrets.OMR_DEPLOY_PORT }} + env: SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }} SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }} SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}