File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,20 @@ jobs:
23
23
run : dotnet build --no-restore -c Release
24
24
- name : Test
25
25
run : dotnet test -c Release
26
+ - name : Load secret
27
+ if : contains( github.ref, 'refs/tags/v' )
28
+ uses : 1password/load-secrets-action@v1
29
+ with :
30
+ # Export loaded secrets as environment variables
31
+ export-env : true
32
+ env :
33
+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
34
+ NUGET_TOKEN : " op://DevOps/nuget-push-token/credential"
26
35
- name : Push to Nuget if tagged
27
36
if : contains( github.ref, 'refs/tags/v' )
28
37
run : |
29
38
cd ./USFMToolsSharp/bin/Release/ && \
30
39
PKG_NAME=$(ls *.nupkg) && \
31
40
dotnet nuget push $PKG_NAME -k $NUGET_TOKEN -s https://api.nuget.org/v3/index.json
32
41
env :
33
- NUGET_TOKEN : ${{ secrets .NUGET_TOKEN }}
42
+ NUGET_TOKEN : ${{ env .NUGET_TOKEN }}
You can’t perform that action at this time.
0 commit comments