Skip to content

Commit

Permalink
Release CI (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Jeandemange <damien.jeandemange@gmail.com>
  • Loading branch information
jeandemanged authored Nov 10, 2024
1 parent b0bd5e3 commit 78d15a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
required: true
default: false
type: boolean
release:
types:
- published

permissions: { }

Expand Down Expand Up @@ -67,3 +70,9 @@ jobs:
with:
name: yagat-${{ matrix.os }}
path: dist/yagat*

- name: Upload release package
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v2.0.9
with:
files: yagat_*_.zip
6 changes: 5 additions & 1 deletion yagat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# SPDX-License-Identifier: MPL-2.0
#
import platform
import shutil
import sys

sys.path.append('./')
Expand Down Expand Up @@ -52,12 +53,15 @@ exe = EXE(
codesign_identity=None,
entitlements_file=None,
)
release_name=f'yagat_{__version__}_{platform.system()}'
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name=f'yagat_{__version__}_{platform.system()}',
name=release_name,
)
print(f'Zipping release into {release_name}.zip')
shutil.make_archive(f'{release_name}', 'zip', f'dist/{release_name}')

0 comments on commit 78d15a9

Please sign in to comment.