forked from fullstackhero/dotnet-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a6e5ff
commit 8bc9280
Showing
3 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
.github/workflows/package.yml → .github/workflows/nuget.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
name: Package | ||
name: Publish NuGet | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'FSH.StarterKit.nuspec' | ||
- "FSH.StarterKit.nuspec" | ||
jobs: | ||
publish: | ||
name: publish nuget | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: checkout code | ||
- uses: nuget/setup-nuget@v1 | ||
- uses: nuget/setup-nuget@v2 | ||
name: setup nuget | ||
with: | ||
nuget-version: '6.x' | ||
nuget-version: "latest" | ||
nuget-api-key: ${{ secrets.NUGET_API_KEY }} | ||
- name: generate package | ||
run: nuget pack FSH.StarterKit.nuspec -NoDefaultExcludes | ||
run: nuget pack FSH.StarterKit.nuspec -NoDefaultExcludes | ||
- name: publish package | ||
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate | ||
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters