Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Panuchi authored Jul 9, 2023
1 parent 4ea4ccd commit 1daa8a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ jobs:

- name: Build the NuGet package Alpha
if: contains(steps.get_version.outputs.version, 'alpha')
run: dotnet pack VkNet/VkNet.csproj --configuration Release --output ${{env.DOTNET_ROOT}}\Package /p:Version=${{ format('{0}.{1}', steps.get_version.outputs.version, github.run_number) }}
run: dotnet pack VkNet/VkNet.csproj --configuration Release --output ${{env.DOTNET_ROOT}}/Package /p:Version=${{ format('{0}.{1}', steps.get_version.outputs.version, github.run_number) }}

- name: Build the NuGet package Release
if: success() && !contains(steps.get_version.outputs.version, 'alpha')
run: dotnet pack VkNet/VkNet.csproj --configuration Release --output ${{env.DOTNET_ROOT}}\Package
run: dotnet pack VkNet/VkNet.csproj --configuration Release --output ${{env.DOTNET_ROOT}}/Package

- name: Publish NuGet Package
run: dotnet nuget push ${{env.DOTNET_ROOT}}\Package\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
run: dotnet nuget push ${{env.DOTNET_ROOT}}/Package/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

telegram:
environment: github-pages
Expand Down

0 comments on commit 1daa8a1

Please sign in to comment.