Update release-compile.yml #3
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: Compile script | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
compile: | |
name: Compile autohotkey script | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Rename source file | |
run: | | |
mv hotkeys.ahk hotkeys-${{ github.ref_name }}.ahk | |
- name: Build with AHK v2.0.13 | |
uses: nukdokplex/autohotkey-build@v1 | |
with: | |
version: v2.0.13 | |
x64: true | |
x86: true | |
x64_suffix: "" | |
x86_suffix: "_x86" | |
out: "out" | |
- name: Attach to release | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
out/hotkeys-${{ github.ref_name }}.exe | |
out/hotkeys-${{ github.ref_name }}_x86.exe |