Skip to content

Commit

Permalink
Update pipeline-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
holzi1005 authored Jul 5, 2023
1 parent 7264dc7 commit cc29ccb
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/pipeline-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +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: false
prerelease: false
release_name: Release ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}

- uses: actions/download-artifact@v3
with:
name: artifact_${{github.run_number}}
Expand All @@ -59,14 +50,17 @@ jobs:
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: 'release.zip'
filename: 'application.zip'
exclusions: '*.git* *.github* /*node_modules/* .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

0 comments on commit cc29ccb

Please sign in to comment.