Add Gitea Actions workflow for Windows build
All checks were successful
Build and Release / Build Windows Exe (push) Successful in 37s

This commit is contained in:
2026-02-06 15:16:04 -05:00
parent aa299df41e
commit 5187b4aad0

View File

@@ -0,0 +1,34 @@
name: Build and Release
on:
push:
branches:
- main
jobs:
build:
name: Build Windows Exe
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build with PyInstaller (Wine)
uses: docker://cdrx/pyinstaller-windows:python3
with:
args: "python -m pip install -r requirements.txt && pyinstaller --onefile --clean --name wif2ansible run.py"
- name: Generate Version Tag
id: version
run: echo "TAG=v$(date +'%Y.%m.%d').${{ gitea.run_number }}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.version.outputs.TAG }}
name: Release ${{ steps.version.outputs.TAG }}
files: dist/windows/wif2ansible.exe
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}