Files
wif2ansible/.gitea/workflows/release.yaml
Kris Forbes f28af4de7a
Some checks failed
Build and Release / Build Windows Exe (push) Failing after 3s
Fix PyInstaller args and artifact glob
2026-02-06 15:21:10 -05:00

36 lines
938 B
YAML

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:
# Image automatically installs requirements.txt if present
args: "--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/**/*.exe
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}