-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284 from H2-invent/hotfix/workflow4
Update pipeline-release.yml
- Loading branch information
Showing
1 changed file
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}} | ||
|
@@ -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 |