Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release CI #2

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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}')