Skip to content

Commit

Permalink
Updated and Push NuGet Package workflow to fix authentication issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyApeOne authored and FrostyApeOne committed Jan 28, 2025
1 parent 3807d92 commit 341a580
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-and-push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
permissions:
packages: write
contents: write
if: startsWith(github.event.inputs.tag_name, 'production-')

steps:
- name: Check Out Tag
Expand Down Expand Up @@ -88,7 +87,6 @@ jobs:
- name: Build, pack and publish
working-directory: src/Dfe.PersonsApi.Client
run: |
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/DFE-Digital/index.json"
dotnet build -c Release
dotnet pack -c Release -p:PackageVersion=${{ env.NEW_VERSION }} --output .
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/DFE-Digital/index.json

0 comments on commit 341a580

Please sign in to comment.