diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e376b299..62341111 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' @@ -53,27 +53,12 @@ jobs: with: args: zip -qq -r ./release.zip ./artifacts - - name: Create release - id: create_release - uses: actions/create-release@v1.1.4 - 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/upload-release-asset@v1.0.1 - 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