Files
wif2ansible/.gitea/workflows/release.yaml
Kris Forbes 284e6b1fbf
Some checks failed
Build and Release / Build Windows Exe (push) Failing after 4s
Set working directory in docker container
2026-02-06 15:26:24 -05:00

35 lines
976 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
run: |
docker run --rm -v "${{ github.workspace }}:/src/" -w /src/ --entrypoint /bin/sh cdrx/pyinstaller-windows:python3 -c "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/**/*.exe
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}