Skip to content

Publish Release

Publish Release #5

name: Publish Release
on:
workflow_dispatch:
inputs:
version:
required: true
description: "Version number in major.minor.build format"
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
BUILD_CONFIGURATION: Release
permissions:
contents: write
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{inputs.version}}
files: ./bin/x64/Release/livekeys.exe
name: ${{inputs.version}}