Skip to content

Commit

Permalink
Build executables manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tnunamak committed Mar 11, 2024
1 parent 8448efd commit 7c81561
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 7c81561

Please sign in to comment.