-
-
Notifications
You must be signed in to change notification settings - Fork 107
35 lines (33 loc) · 945 Bytes
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on: [push]
name: Build
jobs:
build:
name: Build
if: startsWith( github.ref, 'refs/tags/v' )
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build with latest AutoHotkey release
uses: benmusson/ahk2exe-action@v1
with:
in: .\vim.ahk
out: .\vim_ahk\vim_ahk.exe
target: x64
compression: upx
ahk-tag: v1.1.37.02
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Copy icons
shell: cmd
run: xcopy /i /y vim_ahk_icons vim_ahk\vim_ahk_icons
- name: zip
shell: pwsh
run:
Compress-Archive -Path "vim_ahk" -DestinationPath vim_ahk-${{github.ref_name}}.zip
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
vim_ahk-${{github.ref_name}}.zip