release-alchemx #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-alchemx | |
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/setup-msbuild@v1.0.2 | |
- name: Setup Nuget.exe | |
uses: nuget/setup-nuget@v1 | |
- name: Publish VL Nuget | |
uses: vvvv/PublishVLNuget@1.0.41 | |
with: | |
csproj: VL.AlchemX/src/AlchemX.sln | |
nuspec: VL.AlchemX/deployment/VL.AlchemX.nuspec | |
version: ${{ github.event.inputs.version }} | |
nuget-key: ${{ secrets.ALCHEMX_KEY }} | |
- name: Create tag and release | |
uses: avakar/tag-and-release@v1.0.0 | |
with: | |
tag_name: ${{ format('AlchemX_{0}', github.event.inputs.version) }} | |
prerelease: ${{ github.event.inputs.is_pre }} | |
body: ${{ github.event.inputs.notes }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |