Skip to content

Add GitHub Actions workflow for automated releases #4

Add GitHub Actions workflow for automated releases

Add GitHub Actions workflow for automated releases #4

Workflow file for this run

name: Build Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Build executable
run: pyinstaller WSLCommander.spec
- name: Zip artifact
run: Compress-Archive -Path dist\WSLCommander -DestinationPath WSLCommander-${{ github.ref_name }}.zip
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
name: WSL Commander ${{ github.ref_name }}
body_path: docs/release-notes-${{ github.ref_name }}.md
files: WSLCommander-${{ github.ref_name }}.zip