Skip to content

chore: bump version to 0.3.7 #11

chore: bump version to 0.3.7

chore: bump version to 0.3.7 #11

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust + Windows target
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-gnu
- name: Install mingw-w64
run: sudo apt-get install -y gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
- name: Build
run: cargo build --release
- name: Package zip
run: |
VERSION=${{ github.ref_name }}
VER=${VERSION#v}
cp target/x86_64-pc-windows-gnu/release/launcher.exe launcher-${VER}.exe
cp target/x86_64-pc-windows-gnu/release/cec-daemon.exe cec-daemon-${VER}.exe
zip launcher-${VERSION}.zip \
launcher-${VER}.exe \
cec-daemon-${VER}.exe \
config.toml \
install.ps1 \
uninstall.ps1 \
install.bat \
uninstall.bat \
update.bat
- name: Generate Changelog
uses: orhun/git-cliff-action@v4
id: cliff
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: RELEASE_NOTES.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: launcher-${{ github.ref_name }}.zip
body_path: RELEASE_NOTES.md