Skip to content

Commit

Permalink
Fix de Gh Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXDS committed Jul 24, 2023
1 parent 4f81851 commit 35fc3b5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ jobs:
6.0.x
7.0.x
- name: Create NuGet Packages
run: dotnet pack $env:Solution_Name --configuration=$env:Configuration -p:Version=$env:GIT_REF_NAME -p:RepositoryBranch=${{ github.ref }} -p:ContinuousIntegrationBuild=true

run: dotnet pack $env:Solution_Name --configuration=${{ env.Configuration }} -p:Version=${{ github.ref_name }} -p:RepositoryBranch=${{ github.ref }} -p:ContinuousIntegrationBuild=true
- name: Push packages to GitHub
run: dotnet nuget push "Build/**/*.nupkg" -k $env:GhToken --skip-duplicate --source "https://nuget.pkg.github.com/TheXDS/"
env:
GhToken: ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push "Build/**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --source "https://nuget.pkg.github.com/TheXDS/"
- name: Push packages to NuGet
run: dotnet nuget push "Build/**/*.nupkg" -k $env:NgToken --skip-duplicate --source "https://api.nuget.org/v3/index.json"
env:
NgToken: ${{ secrets.NUGET_TOKEN }}
run: dotnet nuget push "Build/**/*.nupkg" -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate --source "https://api.nuget.org/v3/index.json"

0 comments on commit 35fc3b5

Please sign in to comment.