@@ -23,22 +23,36 @@ jobs:
2323 - name : Verify with Maven
2424 shell : bash
2525 run : mvn clean verify
26-
2726 - name : Create jar-only build
2827 shell : bash
2928 run : scripts/create-jar-only-build.sh
30- deploy-product :
31- uses : PalladioSimulator/Palladio-Build-ActionsPipeline/.github/workflows/build.yml@master
32- needs : build-product
33- with :
34- use-display-output : true
35- no-caching : true
36- java-version : 17
37- runner-label : ubuntu-latest
38- deploy-updatesite : ' products/org.dataflowanalysis.product/target/deploy'
39- secrets :
40- SERVER_SSH_KEY : ${{ secrets.PALLADIO_UPDATESITE_SSH }}
41- REMOTE_HOST : ${{ secrets.PALLADIO_REMOTE_HOST }}
42- REMOTE_PORT : ${{ secrets.PALLADIO_REMOTE_PORT }}
43- REMOTE_USER : ${{ secrets.PALLADIO_REMOTE_USER }}
44- REMOTE_TARGET : ${{ secrets.PALLADIO_REMOTE_TARGET }}
29+ - name : Create folder name
30+ shell : bash
31+ run : echo "DEPLOY_FOLDER=$( echo ${{ github.repository }} | cut -d'/' -f2 | sed -e 's/\(.*\)/\L\1/' )" >> $GITHUB_ENV
32+ - name : Create project deployment path
33+ shell : bash
34+ run : echo "PROJECT_DEPLOY_PATH=$( echo '${{ secrets.REMOTE_TARGET}}/${{ env.DEPLOY_FOLDER }}' )" >> $GITHUB_ENV
35+ - name : Create Deployment Path
36+ shell : bash
37+ run : |
38+ if ${{ inputs.release-version != '0.0.0' }}
39+ then
40+ echo "REMOTE_PATH=$( echo '${{ env.PROJECT_DEPLOY_PATH }}/releases/${{ inputs.release-version }}' )" >> $GITHUB_ENV
41+ else
42+ if ${{ github.ref_name == 'master' }} || ${{ github.ref_name == 'main' }}
43+ then
44+ echo "REMOTE_PATH=$( echo '${{ env.PROJECT_DEPLOY_PATH }}/nightly' )" >> $GITHUB_ENV
45+ else
46+ echo "REMOTE_PATH=$( echo '${{ env.PROJECT_DEPLOY_PATH }}/branches/${{ github.ref_name }}' )" >> $GITHUB_ENV
47+ fi
48+ fi
49+ - name : Deploy to Updatesite
50+ uses : PalladioSimulator/Palladio-Build-ActionsPipeline-Deployment@v3
51+ with :
52+ remote-user : ${{ secrets.PALLADIO_REMOTE_USER }}
53+ remote-host : ${{ secrets.PALLADIO_REMOTE_HOST }}
54+ remote-port : ${{ secrets.PALLADIO_REMOTE_PORT }}
55+ server-ssh-key : ${{ secrets.PALLADIO_UPDATESITE_SSH }}
56+ local-source : ' ./products/org.dataflowanalysis.product/target/deploy/*'
57+ remote-target : ${{ env.REMOTE_PATH }}
58+ link-path : ${{ env.PROJECT_DEPLOY_PATH }}
0 commit comments