Files
wif2ansible/.gitea/workflows/release.yaml
Kris Forbes 7e01ec7073
All checks were successful
Build and Release / Build Windows Exe (push) Successful in 4s
Fix release artifact path
2026-02-06 15:18:36 -05:00

35 lines
933 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:
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/wif2ansible.exe
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}