Add Windows build workflow
This commit is contained in:
35
.gitea/workflows/release-win.yml
Normal file
35
.gitea/workflows/release-win.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Windows build & release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: 'windows-latest'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python 3.12
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
pip install uv
|
||||
|
||||
- name: Build executable
|
||||
run: uv run pyinstaller build-win.spec
|
||||
|
||||
# - name: Create ZIP archive
|
||||
# run: Compress-Archive -Path ./dist/wunderland-generator.exe -Destination ./dist/wunderland-generator.zip
|
||||
|
||||
# - name: Release ZIP archive
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# with:
|
||||
# files: ./dist/wunderland-generator.zip
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user