This commit is contained in:
@@ -16,22 +16,36 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
run: dotnet 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
|
- name: Build
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
|
|
||||||
- name: Pack
|
- name: Pack
|
||||||
run: dotnet pack -c Release -o ./packages
|
run: |
|
||||||
|
dotnet pack \
|
||||||
|
-p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
|
||||||
|
-c Release
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
dotnet nuget push ./packages/*.nupkg \
|
dotnet nuget push ./bin/Release/*.nupkg \
|
||||||
--source http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json \
|
--source "http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json" \
|
||||||
|
--api-key "${{ secrets.NUGET_KEY }}" \
|
||||||
|
--skip-duplicate
|
||||||
--allow-insecure-connections true \
|
--allow-insecure-connections true \
|
||||||
--api-key ${{ secrets.NUGET_KEY }}
|
|
||||||
|
|
||||||
# name: Gitea Actions Demo
|
# name: Gitea Actions Demo
|
||||||
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
|
|||||||
9
GitVersion.yml
Normal file
9
GitVersion.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
mode: ContinuousDelivery
|
||||||
|
|
||||||
|
branches:
|
||||||
|
main:
|
||||||
|
increment: Patch
|
||||||
|
feature:
|
||||||
|
increment: Minor
|
||||||
|
hotfix:
|
||||||
|
increment: Patch
|
||||||
Reference in New Issue
Block a user