Skip to content

Commit

Permalink
Merge pull request #284 from H2-invent/hotfix/workflow4
Browse files Browse the repository at this point in the history
Update pipeline-release.yml
  • Loading branch information
holema authored Oct 15, 2024
2 parents a63064d + 974e3b6 commit 6bd7d71
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/pipeline-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ jobs:
change_path: .
version_format: "${major}.${minor}.${patch}"

- name: Create new Release with semantic-version tag
uses: actions/create-release@master
id: create_release
with:
draft: true
prerelease: false
release_name: Release ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
body_path: RELEASE_NOTE.md

- uses: actions/download-artifact@v3
with:
name: artifact_${{github.run_number}}
Expand All @@ -60,14 +50,18 @@ jobs:
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'release.zip'
exclusions: '*.git* *.github* /*node_modules/* .editorconfig'
filename: 'application.zip'
exclusions: '*.git* *.github* /*node_modules/* /*nodejs/* /*var/* .editorconfig'
directory: artifact

- name: Upload Application Asset to Release
uses: actions/upload-release-asset@master
- name: Create new Release with semantic-version tag
uses: ncipollo/release-action@v1
id: create_release
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifact/release.zip
asset_name: application.zip
asset_content_type: application/zip
draft: true
prerelease: false
name: Release ${{ steps.version.outputs.version }}
tag: ${{ steps.version.outputs.version }}
artifacts: artifact/application.zip
artifactContentType: application/zip
bodyFile: RELEASE_NOTE.md

0 comments on commit 6bd7d71

Please sign in to comment.