From a883a0817ae9914b3c18ccbe297000c5c5d12a10 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Thu, 7 Nov 2024 09:47:49 +0100 Subject: [PATCH] Update create_release.yml --- .github/workflows/create_release.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index a015fd3fa3..873b555e3f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -20,12 +20,12 @@ jobs: ################ # Protect master branch ################ - - name: Check branch - if: ${{ github.repository != 'geosolutions-it/MapStore2' || github.ref == 'master' }} - uses: actions/github-script@v3 - with: - script: | - core.setFailed('This workflow can not run on master branch') + # - name: Check branch + # if: ${{ github.repository != 'geosolutions-it/MapStore2' || github.ref == 'master' }} + # uses: actions/github-script@v3 + # with: + # script: | + # core.setFailed('This workflow can not run on master branch') - uses: actions/checkout@v3 - name: "checking out" uses: actions/checkout@v3 @@ -64,19 +64,19 @@ jobs: id: "build" run: "./build.sh ${{ github.event.inputs.version }} binary,printingbundle" - name: "Upload war" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: war + name: release-war path: product/target/mapstore.war - name: "Upload binary" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: binary + name: release-binary path: "binary/target/mapstore2-${{ github.event.inputs.version }}-bin.zip" - name: "Upload printing" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: printing + name: release-printing path: "java/printing/target/mapstore-printing.zip" release: runs-on: ubuntu-latest @@ -86,6 +86,8 @@ jobs: uses: actions/download-artifact@v4.1.7 with: path: artifacts/ + pattern: release-* + merge-multiple: true - name: Display structure of downloaded files run: ls -R working-directory: artifacts