Skip to content

Commit

Permalink
Update create_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored Nov 7, 2024
1 parent 2767b5a commit a883a08
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -86,6 +86,8 @@ jobs:
uses: actions/[email protected]
with:
path: artifacts/
pattern: release-*
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R
working-directory: artifacts
Expand Down

0 comments on commit a883a08

Please sign in to comment.