Skip to content

Commit 752a9cf

Browse files
committed
Update README.md
各種説明等を追加
1 parent 86ab064 commit 752a9cf

File tree

1 file changed

+68
-1
lines changed

1 file changed

+68
-1
lines changed

README.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,68 @@
1-
# GitHub-Action-Ahk2Exe
1+
# GitHub-Action-Ahk2Exe
2+
3+
GitHub Action to compile AutoHotKey scripts using Ahk2Exe
4+
5+
## ⚠️ Precautions for use
6+
7+
Be sure to use Windows as the hosted runner. Otherwise, it will not work.
8+
9+
## ✍ Inputs
10+
11+
The following are the parameters for `step.with`.
12+
Name|Type|Required|Description
13+
-|-|-|-
14+
in|String|True|The path or file name of the AutoHotKey script to compile
15+
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)
16+
icon|String|False|The icon of the executable file is specified
17+
18+
## 📦 Example usage
19+
20+
The following usage example will create a compiled executable of the same name in the path of the AutoHotKey script.
21+
22+
```yaml
23+
name: Example usage of GitHub-Action-Ahk2Exe
24+
25+
on: push
26+
27+
jobs:
28+
Example:
29+
name: Example
30+
runs-on: windows-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
35+
- name: Ahk2Exe
36+
uses: nekocodeX/GitHub-Action-Ahk2Exe@v1
37+
with:
38+
in: example.ahk
39+
```
40+
41+
For example, by using [softprops/action-gh-release](https://github.com/marketplace/actions/gh-release), you can take advantage of the compiled executable created above.
42+
43+
```yaml
44+
name: Example usage of GitHub-Action-Ahk2Exe and softprops/action-gh-release
45+
46+
on: push
47+
48+
jobs:
49+
Example2:
50+
name: Example2
51+
runs-on: windows-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v2
55+
56+
- name: Ahk2Exe
57+
uses: nekocodeX/GitHub-Action-Ahk2Exe@v1
58+
with:
59+
in: example.ahk
60+
61+
- name: Release
62+
uses: softprops/action-gh-release@v1
63+
if: startsWith(github.ref, 'refs/tags/')
64+
with:
65+
files: example.exe
66+
env:
67+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
68+
```

0 commit comments

Comments
 (0)