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 }}