32 lines
1016 B
YAML
32 lines
1016 B
YAML
name: Nuget Pkg Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Setup .NET SDK
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: |
|
|
10.x
|
|
9.x
|
|
8.x
|
|
- name: Build
|
|
run: dotnet build Syrette -c Release
|
|
#- name: Test
|
|
# run: dotnet test -c Release --no-build
|
|
- name: Pack nugets
|
|
run: dotnet pack Syrette -c Release --no-build --output . --include-symbols --include-source -p:SymbolPackageFormat=snupkg
|
|
- name: Push to NuGet
|
|
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGETAPIKEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json
|
|
- name: Push to Gitea
|
|
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGETGITEA}} --skip-duplicate --source https://git.r3d.codes/api/packages/REDCODE/nuget/index.json
|