bm-downloader/.github/workflows/release.yml

44 lines
943 B
YAML

name: Release EXE
on:
push:
tags: ['v*']
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install deps
run: npm ci
- name: Build EXE
run: npx pkg bm.js --target node18-win-x64 --output dist/bm.exe
- name: Patch icon
run: node patch_icon3.js
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bm-downloader-windows
path: dist/bm.exe
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: dist/bm.exe
name: BurmaldaMusic CLI ${{ github.ref_name }}
generate_release_notes: true
prerelease: false