chore: adjust workflow to publish release nupkg
All checks were successful
default / dotnet default workflow (8.0) (push) Successful in 39s

This commit is contained in:
Louis Seubert 2024-05-01 16:22:05 +02:00
parent 67998e966f
commit 16ef85906f
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
2 changed files with 14 additions and 6 deletions

View file

@ -1,22 +1,23 @@
name: default
on:
push:
branches: ["main", "develop"]
branches: [ "main", "develop" ]
paths-ignore:
- "doc/**"
- "*.md"
pull_request:
branches: ["main", "develop"]
branches: [ "main", "develop" ]
paths-ignore:
- "doc/**"
- "*.md"
jobs:
default:
name: dotnet default workflow
runs-on: debian-latest
strategy:
matrix:
dotnet-version: ["8.0"]
dotnet-version: [ "8.0" ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- name: checkout

View file

@ -1,14 +1,15 @@
name: release
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+"]
tags: [ "[0-9]+.[0-9]+.[0-9]+" ]
jobs:
release:
name: dotnet release workflow
runs-on: debian-latest
strategy:
matrix:
dotnet-version: ["8.0"]
dotnet-version: [ "8.0" ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- uses: https://git.geekeey.de/actions/checkout@1
@ -21,4 +22,10 @@ jobs:
- name: dotnet pack
run: |
dotnet pack -p:ContinuousIntegrationBuild=true
dotnet pack -p:ContinuousIntegrationBuild=true
- name: dotnet nuget push
run: |
# The token used here is only intended to publish packages
dotnet nuget push -k "${{ secrets.geekeey_package_registry }}" \
artifacts/package/release/Geekeey.Extensions.Result.*.nupkg