feat: bump version to v0.14.0 and update release date #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |