Skip to content

Commit

Permalink
Switched the env variables to scoped ones using env context
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronMayne committed Sep 13, 2023
1 parent c2e605a commit a4ad800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Restore
run: dotnet restore ${Solution_Path} -p:NoRestore=false
- name: Build
run: dotnet build ${Solution_Path} -p:Version=${GitVersion_AssemblySemVer} -p:NoBuild=false
run: dotnet build ${Solution_Path} -p:Version=${{env.GitVersion_AssemblySemVer}} -p:NoBuild=false
- name: Execute unit tests
run: dotnet test ${Solution_Path}
- name: Pack
run: dotnet msbuild -t:pack ${Solution_Path} -p:PackageVersion={GitVersion_NuGetVersion}
run: dotnet msbuild -t:pack ${Solution_Path} -p:PackageVersion=${{env.GitVersion_NuGetVersion}}
- name: Push
run: dotnet nuget push ./src/Extended.Collections/bin/${Configuration}/*.nupkg --skip-duplicate --api-key ${{ secrets.NuGet_Api_Key }} --source ${{ vars.Nuget_Source_Url}}
run: dotnet nuget push ./src/Extended.Collections/bin/${Configuration}/*.nupkg --skip-duplicate --api-key ${{secrets.NuGet_Api_Key}} --source ${{vars.Nuget_Source_Url}}

0 comments on commit a4ad800

Please sign in to comment.