Skip to content

Commit

Permalink
Update upload-artifact action
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Jan 30, 2025
1 parent fc230b6 commit 85712e1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
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 Expand Up @@ -127,7 +129,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/war/mapstore.war
asset_path: artifacts/mapstore.war
asset_name: mapstore.war
asset_content_type: application/zip
- name: Upload Release binary
Expand All @@ -137,7 +139,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: "artifacts/binary/mapstore2-${{github.event.inputs.version}}-bin.zip"
asset_path: "artifacts/mapstore2-${{github.event.inputs.version}}-bin.zip"
asset_name: "mapstore2-${{github.event.inputs.version}}-bin.zip"
asset_content_type: application/zip
- name: Upload Release printing
Expand All @@ -147,6 +149,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/printing/mapstore-printing.zip
asset_path: artifacts/mapstore-printing.zip
asset_name: mapstore-printing.zip
asset_content_type: application/zip

0 comments on commit 85712e1

Please sign in to comment.