Skip to content

Commit 16267f7

Browse files
committed
init setup for build action
1 parent 693e903 commit 16267f7

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
1+
on:
2+
push:
3+
branches:
4+
- 'setup-actions'
5+
tags:
6+
- 'v*'
17

8+
name: Build trinagle_check release
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: 'write'
14+
name: Build trinagle_check release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
21+
- name: PyInstaller-Linux
22+
uses: JackMcKew/[email protected]
23+
with:
24+
path: .
25+
26+
- name: Cp Linux Dist
27+
run : cp -r dist/linux/triangle_check .
28+
29+
- name: Zip Linux Dist
30+
run : zip -r triangle_check.zip triangle_check
31+
32+
- name: Create Release
33+
id: create_release
34+
uses: actions/create-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
tag_name: ${{ github.ref }}
39+
release_name: Release ${{ github.ref }}
40+
draft: false
41+
prerelease: false
42+
43+
- name: Upload Release Asset
44+
id: upload-release-asset
45+
uses: actions/upload-release-asset@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
upload_url: ${{ steps.create_release.outputs.upload_url }}
50+
asset_path: ./triangle_check.zip
51+
asset_name: triangle_check.zip
52+
asset_content_type: application/gzip

triangle_check.spec

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
block_cipher = None
5+
6+
7+
a = Analysis(
8+
['triangle_check.py'],
9+
pathex=[],
10+
binaries=[],
11+
datas=[],
12+
hiddenimports=[],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
16+
excludes=[],
17+
win_no_prefer_redirects=False,
18+
win_private_assemblies=False,
19+
cipher=block_cipher,
20+
noarchive=False,
21+
)
22+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
23+
24+
exe = EXE(
25+
pyz,
26+
a.scripts,
27+
[],
28+
exclude_binaries=True,
29+
name='triangle_check',
30+
debug=False,
31+
bootloader_ignore_signals=False,
32+
strip=False,
33+
upx=True,
34+
console=True,
35+
disable_windowed_traceback=False,
36+
argv_emulation=False,
37+
target_arch=None,
38+
codesign_identity=None,
39+
entitlements_file=None,
40+
)
41+
coll = COLLECT(
42+
exe,
43+
a.binaries,
44+
a.zipfiles,
45+
a.datas,
46+
strip=False,
47+
upx=True,
48+
upx_exclude=[],
49+
name='triangle_check',
50+
)

0 commit comments

Comments
 (0)