Skip to content

Commit c27d96a

Browse files
committed
Use environment variable directly
1 parent a96d97e commit c27d96a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/dotnetcore.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ on:
1515
jobs:
1616
build:
1717
runs-on: windows-latest
18-
env:
19-
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
2018
steps:
2119
- uses: actions/checkout@v2
2220
- name: Setup .NET Core
@@ -47,9 +45,9 @@ jobs:
4745
if: github.ref == 'refs/heads/beta'
4846
run: |
4947
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj --version-suffix "beta"
50-
dotnet nuget push **\*.nupkg -s "nuget" -k %NUGET_TOKEN%
48+
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"
5149
- name: Publish Stable
5250
if: github.ref == 'refs/heads/stable'
5351
run: |
5452
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj
55-
dotnet nuget push **\*.nupkg -s "nuget" -k %NUGET_TOKEN%
53+
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"

0 commit comments

Comments
 (0)