Skip to content

Commit

Permalink
Update of release action
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHawker committed Mar 22, 2023
1 parent 635fcb3 commit 6f84c74
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,14 @@ jobs:

- name: Create release
id: createRelease
uses: actions/create-release@v1
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.versionNumber }}
release_name: ${{ env.versionNumber }}
artifactErrorsFailBuild: true
artifacts: "./MFilesAPI.Extensions/bin/Release/MFilesAPI.Extensions.${{ env.versionNumber }}.nupkg"
name: ${{ env.versionNumber }}
tag: ${{ env.versionNumber }}
draft: false
prerelease: ${{ github.ref_name == 'prerelease' }}

- name: Upload asset
id: uploadAsset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.createRelease.outputs.upload_url }}
asset_path: ./MFilesAPI.Extensions/bin/Release/MFilesAPI.Extensions.${{ env.versionNumber }}.nupkg
asset_name: MFilesAPI.Extensions.nupkg
asset_content_type: application/zip
omitBody: true
prerelease: ${{ env.versionSuffix == '' }}

0 comments on commit 6f84c74

Please sign in to comment.