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 name: default
on: on:
push: push:
branches: ["main", "develop"] branches: [ "main", "develop" ]
paths-ignore: paths-ignore:
- "doc/**" - "doc/**"
- "*.md" - "*.md"
pull_request: pull_request:
branches: ["main", "develop"] branches: [ "main", "develop" ]
paths-ignore: paths-ignore:
- "doc/**" - "doc/**"
- "*.md" - "*.md"
jobs: jobs:
default: default:
name: dotnet default workflow
runs-on: debian-latest runs-on: debian-latest
strategy: strategy:
matrix: matrix:
dotnet-version: ["8.0"] dotnet-version: [ "8.0" ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }} container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps: steps:
- name: checkout - name: checkout

View file

@ -1,14 +1,15 @@
name: release name: release
on: on:
push: push:
tags: ["[0-9]+.[0-9]+.[0-9]+"] tags: [ "[0-9]+.[0-9]+.[0-9]+" ]
jobs: jobs:
release: release:
name: dotnet release workflow
runs-on: debian-latest runs-on: debian-latest
strategy: strategy:
matrix: matrix:
dotnet-version: ["8.0"] dotnet-version: [ "8.0" ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }} container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps: steps:
- uses: https://git.geekeey.de/actions/checkout@1 - uses: https://git.geekeey.de/actions/checkout@1
@ -21,4 +22,10 @@ jobs:
- name: dotnet pack - name: dotnet pack
run: | 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