2024-04-27 18:15:05 +00:00
|
|
|
name: release
|
|
|
|
on:
|
|
|
|
push:
|
2024-05-10 19:48:52 +00:00
|
|
|
tags: [ "[0-9]+.[0-9]+.[0-9]+" ]
|
2024-04-27 18:15:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2024-05-10 19:48:52 +00:00
|
|
|
name: dotnet release workflow
|
2024-04-27 18:15:05 +00:00
|
|
|
runs-on: debian-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-10 19:48:52 +00:00
|
|
|
dotnet-version: [ "8.0" ]
|
2024-04-27 18:15:05 +00:00
|
|
|
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
|
|
|
|
steps:
|
|
|
|
- uses: https://git.geekeey.de/actions/checkout@1
|
|
|
|
|
|
|
|
- name: nuget login
|
|
|
|
run: |
|
|
|
|
# This token is readonly and can only be used for restore
|
|
|
|
dotnet nuget update source geekeey --store-password-in-clear-text \
|
|
|
|
--username "${{ github.actor }}" --password "${{ github.token }}"
|
|
|
|
|
|
|
|
- name: dotnet pack
|
|
|
|
run: |
|
2024-05-10 19:48:52 +00:00
|
|
|
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.Process.*.nupkg
|