Skip to content

Update release-compile.yml #3

Update release-compile.yml

Update release-compile.yml #3

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