migrated workflows to gitea
Publish Nuget Packages / publish (OmegaLeo.HelperLib) (release) Successful in 56s
Publish Nuget Packages / publish (OmegaLeo.HelperLib.Changelog) (release) Successful in 55s
Publish Nuget Packages / publish (OmegaLeo.HelperLib.Documentation) (release) Successful in 1m1s
Publish Nuget Packages / publish (OmegaLeo.HelperLib.Game) (release) Successful in 53s
Publish Nuget Packages / publish (OmegaLeo.HelperLib.Shared) (release) Successful in 40s

This commit is contained in:
2026-10-24 11:48:51 +01:00
parent c745fb18bd
commit c38bc89fa7
6 changed files with 68 additions and 227 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Publish to Gitea Packages
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Version tag (e.g., 1.0.0)'
required: true
type: string
run-name: "Publish version v${{ inputs.tag_name }} to Gitea Packages"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- OmegaLeo.HelperLib
- OmegaLeo.HelperLib.Changelog
- OmegaLeo.HelperLib.Game
- OmegaLeo.HelperLib.Documentation
- OmegaLeo.HelperLib.Shared
steps:
- uses: actions/checkout@v4
- name: Setup .Net Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Create Nuget Package
run: dotnet pack "./${{ matrix.project }}/${{ matrix.project }}.csproj" -c Release /p:Version=${{ inputs.tag_name }}
- name: Publish to Gitea Packages
run: dotnet nuget push ./${{ matrix.project }}/bin/Release/${{ matrix.project }}.${{ inputs.tag_name }}.nupkg --api-key ${{ secrets.TOKEN }} --source ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/nuget/index.json --skip-duplicate