This commit is contained in:
@@ -16,22 +16,36 @@ jobs:
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 10.0.x
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore
|
||||
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
with:
|
||||
versionSpec: '5.x'
|
||||
|
||||
- name: Determine Version
|
||||
id: gitversion
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
|
||||
- name: Build
|
||||
run: dotnet build -c Release
|
||||
|
||||
- name: Pack
|
||||
run: dotnet pack -c Release -o ./packages
|
||||
run: |
|
||||
dotnet pack \
|
||||
-p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
|
||||
-c Release
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
dotnet nuget push ./packages/*.nupkg \
|
||||
--source http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json \
|
||||
dotnet nuget push ./bin/Release/*.nupkg \
|
||||
--source "http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json" \
|
||||
--api-key "${{ secrets.NUGET_KEY }}" \
|
||||
--skip-duplicate
|
||||
--allow-insecure-connections true \
|
||||
--api-key ${{ secrets.NUGET_KEY }}
|
||||
|
||||
# name: Gitea Actions Demo
|
||||
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||
|
||||
Reference in New Issue
Block a user