From f91c6368451f87e09efb6ecb9c0074780ca152a2 Mon Sep 17 00:00:00 2001 From: Saeed Esmaeelinejad Date: Sun, 29 Jan 2023 00:46:09 +0700 Subject: [PATCH] Update package.yml --- .github/workflows/package.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b5d677c..5b8657e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -73,19 +73,12 @@ jobs: run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" #Create release - - name: Create Release - if: 1 == 0 #needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ needs.build.outputs.Version }} - release_name: Release ${{ needs.build.outputs.Version }} - name: Create Release if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change uses: ncipollo/release-action@v1 with: - tag: ${{ needs.build.outputs.Version }} - name: Release ${{ needs.build.outputs.Version }} + tag: ${{ github.event.inputs.versionIncrement }} + tag_name: v${{ github.event.inputs.versionIncrement }} + name: Release ${{ github.event.inputs.versionIncrement }} artifacts: "nugetPackage/*" token: ${{ secrets.GITHUB_TOKEN }}