okidokili

This commit is contained in:
2024-07-17 15:47:51 +02:00
committed by Flo Greistorfer
parent f52b0e7778
commit d76d2e146d

View File

@@ -1,10 +1,6 @@
name: build-release name: build-release
run-name: build-release run-name: build-release
on: on: push
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -17,23 +13,11 @@ jobs:
run: pip install -r requirements.txt run: pip install -r requirements.txt
- name: Build Package - name: Build Package
run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder -F --add-data files:files --add-data templates:templates --add-data .version:. run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder -F --add-data files:files --add-data templates:templates --add-data .version:.
- name: Create Release - name: Release
id: create_release uses: softprops/action-gh-release@v2
uses: actions/create-release@v1 if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} make_latest: true
release_name: Release ${{ github.ref }} generate_release_notes: true
draft: false files: |
prerelease: false dist/StaticGalleryBuilder
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist/StaticGalleryBuilder
asset_name: StaticGalleryBuilder
asset_content_type: application/x-executable