From 5b9921c03045fd7b345f4af189d2dd4ff741996c Mon Sep 17 00:00:00 2001 From: Flo Greistorfer Date: Wed, 17 Jul 2024 13:47:20 +0200 Subject: [PATCH] release work? --- .github/workflows/build-release.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 551083a..aed5678 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -8,8 +8,28 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: '3.x' - name: install dependancies run: pip install -r requirements.txt - name: build package - run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder + run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder -F + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - 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