Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithgroth committed May 9, 2022
1 parent 53cc7d7 commit 50944a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
GITHUB_FEED: https://nuget.pkg.github.com/SignHere/
GITHUB_USER: Mithgroth
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GH_PAT }}
# Official NuGet Feed settings
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
Expand Down Expand Up @@ -77,8 +76,6 @@ jobs:
VERSION="${VERSION//v}"
echo Clean Version: $VERSION
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME.*proj
- name: Authenticate to GitHub Actions
run: dotnet nuget add source --username $GITHUB_USER --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/$GITHUB_USER/index.json"
- name: Push to NuGet Feed
run: dotnet nuget push ./nupkg/*.nupkg --source "github" --skip-duplicate --api-key $GITHUB_PAT
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY

0 comments on commit 50944a8

Please sign in to comment.