Skip to content

Commit 328639d

Browse files
StevenTCrameropencode
andcommitted
ci: simplify GitHub Packages push authentication
Use --api-key flag directly instead of adding a named source, reducing complexity and potential credential storage issues. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
1 parent a928827 commit 328639d

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ jobs:
4848
- name: Publish to GitHub Packages
4949
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
5050
run: |
51-
dotnet nuget add source \
52-
--username ${{ github.actor }} \
53-
--password ${{ secrets.GITHUB_TOKEN }} \
54-
--store-password-in-clear-text \
55-
--name github \
56-
"https://nuget.pkg.github.com/TimeWarpEngineering/index.json"
57-
58-
dotnet nuget push artifacts/packages/*.nupkg --source "github" --skip-duplicate
51+
dotnet nuget push artifacts/packages/*.nupkg \
52+
--source "https://nuget.pkg.github.com/TimeWarpEngineering/index.json" \
53+
--api-key ${{ secrets.GITHUB_TOKEN }} \
54+
--skip-duplicate

0 commit comments

Comments
 (0)