Skip to content

Merge pull request #3 from mfaizsyahmi/dev #2

Merge pull request #3 from mfaizsyahmi/dev

Merge pull request #3 from mfaizsyahmi/dev #2

Workflow file for this run

name: PyInstaller Build and Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0
# branches: [ "main-py" ]
# pull_request:
# branches: [ "main-py" ]
permissions:
contents: write
# adapted from https://github.com/pyinstaller/pyinstaller/issues/6296#issuecomment-943620645
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest'] # , 'ubuntu-latest']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11
- run: |
pip install -r src/requirements.txt pyinstaller
pyinstaller src/bsptexremap.spec
# Optionally verify that it works (provided that it does not need user interaction)
# - run: ./dist/your-code/your-code
# - uses: actions/upload-artifact@v2
# with:
# path: |
# *.txt
# *.fgd
# dist/*
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.txt
*.fgd
./dist/*