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