Skip to content

feat: add ci/cd

feat: add ci/cd #17

Workflow file for this run

name: Build on Windows
on: push
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout ahk-libs
uses: actions/checkout@master
with:
name: thegamerx1/ahk-libs
path: 'Lib'
- run: choco install autohotkey
- name: Compile HTML
run: >
& "C:\Program Files\AutoHotkey\AutohotkeyU64.exe" "Lib\EzGui\projectCompile.ahk" "$(pwd)\web\index.html"
- name: Compile AHK
run: >
& "C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" "/in" "main.ahk"
- run: Get-ChildItem -Depth 1
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: StartUp.exe
path: StartUp.exe
if-no-files-found: error
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
files: StartUp.exe