Skip to content

docs: Add note about AutoHotkey v1 and v2 compatibility #135

docs: Add note about AutoHotkey v1 and v2 compatibility

docs: Add note about AutoHotkey v1 and v2 compatibility #135

Workflow file for this run

on: [push, pull_request]
name: Build test
jobs:
build:
name: Build test
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install AutoHotkey with Chocolatey
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install autohotkey
# fix for [Unable to copy error by command line · Issue #68 · AutoHotkey/Ahk2Exe](https://github.com/AutoHotkey/Ahk2Exe/issues/68)
- name: build
shell: cmd
run: ./build.bat
- name: get tag
if: startsWith( github.ref, 'refs/tags/v' )
id: get_tag
shell: bash
run: echo ::set-output name=tag::${GITHUB_REF##*/}
- name: zip
if: startsWith( github.ref, 'refs/tags/v' )
shell: pwsh
run:
Compress-Archive -Path "vim_ahk" -DestinationPath vim_ahk-${{steps.get_tag.outputs.tag}}.zip
- name: Create Release
if: startsWith( github.ref, 'refs/tags/v' )
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{github.ref}}
release_name: Release ${{github.ref}}
draft: false
prerelease: false
- name: Upload Release Asset
if: startsWith( github.ref, 'refs/tags/v' )
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: vim_ahk-${{steps.get_tag.outputs.tag}}.zip
asset_name: vim_ahk-${{steps.get_tag.outputs.tag}}.zip
asset_content_type: application/zip