Skip to content

Manual Release

Manual Release #2

name: Manual Release
on:
workflow_dispatch:
inputs:
version:
description: "The version to release"
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pack NuGet
run: dotnet pack -p:PackageVersion=${{inputs.version}} -c Release -o ./nuget -p:Version=${{inputs.version}}
- name: Push Github Nuget
run: dotnet nuget push ./nuget/*.nupkg -s "https://nuget.pkg.github.com/deveel/index.json" --skip-duplicate --api-key ${{secrets.GITHUB_TOKEN}}
- name: Push to Github.org
run: dotnet nuget push ./nuget/**/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json