Build Updatesite #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Updatesite | |
| on: workflow_dispatch | |
| jobs: | |
| build-product: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Setup Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.6 | |
| - name: Verify with Maven | |
| shell: bash | |
| run: mvn clean verify | |
| - name: Create jar-only build | |
| shell: bash | |
| run: scripts/create-jar-only-build.sh | |
| - name: Determine remote folder name | |
| shell: bash | |
| run: echo "DEPLOY_FOLDER=$( echo ${{ github.repository }} | cut -d'/' -f2 | sed -e 's/\(.*\)/\L\1/' )" >> $GITHUB_ENV | |
| - name: Determine remote folder location | |
| shell: bash | |
| run: echo "PROJECT_DEPLOY_PATH=$( echo '${{ secrets.PALLADIO_REMOTE_TARGET}}/${{ env.DEPLOY_FOLDER }}' )" >> $GITHUB_ENV | |
| - name: Determine remote folder suffix | |
| shell: bash | |
| run: | | |
| if ${{ github.ref_name == 'master' }} || ${{ github.ref_name == 'main' }} | |
| then | |
| echo "REMOTE_PATH=$( echo '${{ env.PROJECT_DEPLOY_PATH }}/nightly' )" >> $GITHUB_ENV | |
| else | |
| echo "REMOTE_PATH=$( echo '${{ env.PROJECT_DEPLOY_PATH }}/branches/${{ github.ref_name }}' )" >> $GITHUB_ENV | |
| fi | |
| - name: Deploy to Updatesite | |
| uses: PalladioSimulator/Palladio-Build-ActionsPipeline-Deployment@v3 | |
| with: | |
| remote-user: ${{ secrets.PALLADIO_REMOTE_USER }} | |
| remote-host: ${{ secrets.PALLADIO_REMOTE_HOST }} | |
| remote-port: ${{ secrets.PALLADIO_REMOTE_PORT }} | |
| server-ssh-key: ${{ secrets.PALLADIO_UPDATESITE_SSH }} | |
| local-source: './products/org.dataflowanalysis.product/target/deploy/*' | |
| remote-target: ${{ env.REMOTE_PATH }} | |
| link-path: ${{ env.PROJECT_DEPLOY_PATH }} |