Skip to content

Commit

Permalink
Merge pull request #12 from YohDeadfall/update-workflow
Browse files Browse the repository at this point in the history
Replaced stale GitHub action
  • Loading branch information
lontivero authored May 5, 2023
2 parents a410f43 + b7686ad commit 983db2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release

- name: 'Get Version'
id: version
uses: battila7/get-version-action@v2
uses: Im-Fran/[email protected]
with:
remove-first-character: 'v'

- name: 'Pack project'
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ env.VERSION }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}

- name: 'Push package'
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}

0 comments on commit 983db2b

Please sign in to comment.