File tree Expand file tree Collapse file tree 4 files changed +69
-4
lines changed
Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Original file line number Diff line number Diff line change 66 branches :
77 - main
88 pull_request :
9+ branches :
10+ - main
911 workflow_dispatch :
1012
1113jobs :
5355 user : __token__
5456 password : ${{ secrets.PYPI_CLOUD2SQL }}
5557 packages_dir : ./dist/
58+
59+ - name : Build binary
60+ id : pyinstaller
61+ run : |
62+ pip install pyinstaller
63+ pyinstaller --clean --noconfirm --log-level=WARN --distpath=dist --workpath=build cloud2sql.spec
64+ if [ "${{ github.ref_type }}" = tag ]; then
65+ echo "target=cloud2sql-${{ github.ref_name }}.linux-amd64" >> $GITHUB_OUTPUT
66+ else
67+ echo "target=cloud2sql-${GITHUB_SHA::7}.linux-amd64" >> $GITHUB_OUTPUT
68+ fi
69+
70+ - name : Move binary
71+ run : |
72+ mv dist/cloud2sql dist/${{ steps.pyinstaller.outputs.target }}
73+
74+ - name : Upload artifact
75+ if : github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch'
76+ uses : actions/upload-artifact@v2
77+ with :
78+ name : ${{ steps.pyinstaller.outputs.target }}
79+ path : dist/${{ steps.pyinstaller.outputs.target }}
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ MANIFEST
3636# Usually these files are written by a python script from a template
3737# before PyInstaller builds the exe, so as to inject date/other infos into it.
3838* .manifest
39- * .spec
4039
4140# Installer logs
4241pip-log.txt
Original file line number Diff line number Diff line change 1+ # -*- mode: python ; coding: utf-8 -*-
2+
3+
4+ block_cipher = None
5+
6+
7+ a = Analysis (
8+ ['cloud2sql/__main__.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+ a .binaries ,
28+ a .zipfiles ,
29+ a .datas ,
30+ [],
31+ name = 'cloud2sql' ,
32+ debug = False ,
33+ bootloader_ignore_signals = False ,
34+ strip = False ,
35+ upx = True ,
36+ upx_exclude = [],
37+ runtime_tmpdir = None ,
38+ console = True ,
39+ disable_windowed_traceback = False ,
40+ argv_emulation = False ,
41+ target_arch = None ,
42+ codesign_identity = None ,
43+ entitlements_file = None ,
44+ )
Original file line number Diff line number Diff line change 44SQLAlchemy == 2.0.0b3
55PyYAML == 6.0
66rich == 12.6.0
7+ resotolib == 3.0.0rc3
78resotoclient == 1.2.1
89
910# bundle popular db drivers
@@ -16,6 +17,3 @@ resoto-plugin-aws==3.0.0rc3
1617resoto-plugin-digitalocean == 3.0.0rc3
1718resoto-plugin-gcp == 3.0.0rc3
1819resoto-plugin-k8s == 3.0.0rc3
19- resoto-plugin-slack == 3.0.0rc3
20- resoto-plugin-onelogin == 3.0.0rc3
21-
You can’t perform that action at this time.
0 commit comments