Skip to content

release-kairos-runtime #19

release-kairos-runtime

release-kairos-runtime #19

name: release-kairos-runtime
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch to release from'
required: true
default: 'main'
version:
description: 'The version to push'
required: true
default: 'X.X.X'
is_pre:
description: 'Is pre release'
type: boolean
notes:
description: 'A description for this release, will be displayed in the Releases section'
required: true
jobs:
build:
runs-on: windows-latest
steps:
- name: Git Checkout
uses: actions/checkout@master
with:
ref: ${{ github.event.inputs.branch }}
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
- name: Publish VL Nuget
uses: vvvv/[email protected]
with:
csproj: VL.Kairos.Runtime/src/VL.Kairos.Runtime.sln
nuspec: VL.Kairos.Runtime/deployment/VL.Kairos.Runtime.nuspec
version: ${{ github.event.inputs.version }}
nuget-key: ${{ secrets.KAIROS_RUNTIME_KEY }}
- name: Create tag and release
uses: avakar/[email protected]
with:
tag_name: ${{ format('KairosRuntime_{0}', github.event.inputs.version) }}
prerelease: ${{ github.event.inputs.is_pre }}
body: ${{ github.event.inputs.notes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}