Skip to content

Add release if commit is tagged #4

Add release if commit is tagged

Add release if commit is tagged #4

Workflow file for this run

name: "Build binaries"
permissions:
contents: write
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install pyinstaller
- run: pyinstaller --noconsole --onefile --distpath ./dist/{{ runner.os }} src/FarmUpload.py
#- uses: actions/upload-artifact@v4
# with:
# path: dist/*
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/{{ runner.os }}/FarmUpload*