ci: add release workflow + rcedit devdep, fix patch_icon3 for CI
This commit is contained in:
parent
ee59ba8247
commit
023ebae786
4 changed files with 390 additions and 1 deletions
41
.github/workflows/release.yml
vendored
Normal file
41
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: Release EXE
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ['v*']
|
||||
workflow_dispatch:
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue