From 7c81561ae22806a7fec4c03d6e75f4a9972ad603 Mon Sep 17 00:00:00 2001 From: Tim Nunamaker Date: Mon, 11 Mar 2024 11:15:27 -0500 Subject: [PATCH] Build executables manually --- .github/workflows/package.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c4b459b..903ed4f 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,10 +1,13 @@ name: Build with PyInstaller on: - push: - branches: [main, package] - # pull_request: - # branches: [main, package] + workflow_dispatch: + inputs: + artifact_name: + description: 'Artifact name' + required: false +# push: +# branches: [main] jobs: build: @@ -60,22 +63,12 @@ jobs: run: poetry run pyinstaller selfie.spec --noconfirm shell: bash - # - name: Archive Build Output - # run: | - # cd dist - # tar -czvf selfie-build.tar.gz * - # shell: bash - - # - name: Upload Artifact - # uses: actions/upload-artifact@v4 - # with: - # name: ${{ matrix.os }}-build - # path: dist/selfie-build.tar.gz - # overwrite: true + - name: Set executable permissions + run: chmod +x dist/selfie/selfie - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: ${{ matrix.os }}-build + name: ${{ github.event.inputs.artifact_name || format('{0}-build', matrix.os) }} path: dist overwrite: true