Prexonite, a .NET hosted scripting language with a focus on meta-programming and embedded DSLs
0

Configure Feed

Select the types of activity you want to include in your feed.

PRX-48: use PAT in setup-dotnet

authored by

Christian Klauser and committed by
Christian Klauser
(Apr 6, 2022, 8:59 PM +0200) 9562ef92 c263e176

+2 -9
+1 -4
.github/workflows/PrxRelease.yml
··· 49 49 5.0.x 50 50 source-url: 'https://nuget.pkg.github.com/chklauser/index.json' 51 51 env: 52 + # Use a personal access token (publishing with the GITHUB_TOKEN is somehow not possible) 52 53 NUGET_AUTH_TOKEN: '${{secrets.CICD_PAT}}' 53 - - name: NuGet login for publishing 54 - run: | 55 - dotnet nuget update source --username chklauser --password '${{secrets.CICD_PAT}}' --store-password-in-clear-text chklauser 56 - shell: bash 57 54 - uses: actions/cache@v2 58 55 with: 59 56 path: ~/.nuget/packages
+1 -5
.github/workflows/PxCocoRelease.yml
··· 31 31 - name: Setup .NET 6 SDK 32 32 uses: actions/setup-dotnet@v1.7.2 33 33 env: 34 + # Use a personal access token (publishing with the GITHUB_TOKEN is somehow not possible) 34 35 NUGET_AUTH_TOKEN: '${{secrets.CICD_PAT}}' 35 36 with: 36 37 # version 5.0 used for T4 ··· 38 39 6.0.x 39 40 5.0.x 40 41 source-url: 'https://nuget.pkg.github.com/chklauser/index.json' 41 - - name: NuGet login for publishing 42 - run: | 43 - # Need to switch to a personal access token to publish. Doesn't work when done through actions/setup-dotnet 44 - dotnet nuget update source --username chklauser --password '${{secrets.CICD_PAT}}' --store-password-in-clear-text chklauser 45 - shell: bash 46 42 - name: Install dependencies (Win) 47 43 run: dotnet restore PxCoco/PxCoco.csproj 48 44 - name: Build (Win)