GitHub Action to compile AutoHotKey scripts using Ahk2Exe
Be sure to use Windows as the hosted runner. Otherwise, it will not work.
The following are the parameters for step.with
.
Name | Type | Required | Description |
---|---|---|---|
in | String | True | The path or file name of the AutoHotKey script to compile |
out | String | False | The path or file name of the compiled executable (by default, an executable of the same name will be created in the path of the AutoHotKey script specified by the "in" parameter) |
icon | String | False | The icon of the executable file is specified |
base | String | False | The name of the base file to be used for Ahk2Exe |
The following usage example will create a compiled executable of the same name in the path of the AutoHotKey script.
name: Example usage of GitHub-Action-Ahk2Exe
on: push
jobs:
Example:
name: Example
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Ahk2Exe
uses: nekocodeX/GitHub-Action-Ahk2Exe@main
with:
in: example.ahk
For example, by using softprops/action-gh-release, you can take advantage of the compiled executable created above.
name: Example usage of GitHub-Action-Ahk2Exe and softprops/action-gh-release
on: push
jobs:
Example2:
name: Example2
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Ahk2Exe
uses: nekocodeX/GitHub-Action-Ahk2Exe@main
with:
in: example.ahk
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: example.exe
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
MIT License