Skip to content

Commit

Permalink
Updated workflow to release a build manually (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack authored Feb 5, 2024
1 parent 0510b84 commit b69b34a
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Build Release
on: [push, workflow_dispatch]
name: Build & Release
on:
workflow_dispatch:
inputs:
version:
required: true

jobs:

build:
permissions: write-all
runs-on: windows-latest
Expand All @@ -11,12 +14,15 @@ jobs:
steps:
- uses: actions/checkout@v4

# - name: Setup Visual Studio Build Environment
# run: |
# & "C:/Program Files/Microsoft/Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat"
#
# - name: Build Executable and DLL
# run: nmake
# - name: Setup Visual Studio Build Environment & Build
# run: |
# & "C:/Program Files/Microsoft/Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat"

- name: Setup Visual Studio Build Environment
uses: ilammy/msvc-dev-cmd@v1

- name: Build Executable and DLL
run: nmake

#- name: Create Release
# run: gh release create ${{ github.sha }} ./wm.exe ./wm_dll.dll -n "Version ${{ github.sha }}"
- name: Create Release
run: gh release create ${{ github.event.inputs.version }} ./lightwm.exe ./lightwm_dll.dll -n "Version ${{ github.event.inputs.version }}"

0 comments on commit b69b34a

Please sign in to comment.