Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
sensslen committed Dec 5, 2023
1 parent 9deb3cc commit c959610
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: restore
run: dotnet restore
- uses: nowsprinting/check-version-format-action@v3.2.4
- uses: nowsprinting/check-version-format-action@v3
id: version
with:
prefix: 'v'
Expand All @@ -53,27 +53,12 @@ jobs:
with:
args: zip -qq -r ./release.zip ./artifacts

- name: Create release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip
prerelease: true
files: |
release.zip
- name: publish nuget package to nuget.org
id: publish_nuget
Expand Down

0 comments on commit c959610

Please sign in to comment.