Skip to content

Commit

Permalink
Merge pull request #94 from N3developertoolkit/change-gitaction
Browse files Browse the repository at this point in the history
update push github action
  • Loading branch information
Ashuaidehao authored Nov 6, 2023
2 parents ac0f8d7 + 2c82bb2 commit 19f056c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'docs/**'

env:
AZURE_ARTIFACTS_FEED_URL: https://nuget.pkg.github.com/N3developertoolkit/index.json
GITHUB_FEED_URL: https://nuget.pkg.github.com/N3developertoolkit/index.json
DOTNET_VERSION: '7.0.x'

jobs:
Expand All @@ -28,13 +28,15 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
source-url: ${{ env.AZURE_ARTIFACTS_FEED_URL }}
source-url: ${{ env.GITHUB_FEED_URL }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download Packages
uses: actions/download-artifact@v3
with:
name: packages
path: ./out
- name: Publish to Azure Artifacts
- name: Publish to Github Package
run: dotnet nuget push out/*.nupkg
- name: Publish to Myget
run: dotnet nuget push out/*.nupkg ${{ secrets.MYGET_TOKEN }} --source https://www.myget.org/F/ngd/api/v2/package

0 comments on commit 19f056c

Please sign in to comment.