Publish Release #4
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: 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}} |