Files
StaticGalleryBuilder/.github/workflows/build-release.yml

24 lines
762 B
YAML

name: build-release
run-name: build-release
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Package
run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder-$(cat .version)-linux -F --add-data files:files --add-data templates:templates --add-data .version:.
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
make_latest: true
generate_release_notes: true
files: |
dist/StaticGalleryBuilder*