chore: adjust workflow to publish release nupkg
All checks were successful
default / dotnet default workflow (8.0) (push) Successful in 39s
All checks were successful
default / dotnet default workflow (8.0) (push) Successful in 39s
This commit is contained in:
parent
67998e966f
commit
16ef85906f
2 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -22,3 +23,9 @@ jobs:
|
|||
- name: dotnet pack
|
||||
run: |
|
||||
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
|
Loading…
Reference in a new issue