File tree Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Build binary
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - ' *'
5
8
6
9
jobs :
7
10
deploy :
@@ -20,21 +23,32 @@ jobs:
20
23
python-version : ' 3.x'
21
24
22
25
- name : Install dependencies
26
+ shell : bash
23
27
run : |
24
28
python -m pip install --upgrade pip
25
29
pip install -r requirements/requirements.txt
26
30
pip install -r requirements/requirements_dev.txt
27
31
pip install pyinstaller
28
32
29
33
- name : Build binary
34
+ shell : bash
30
35
run : |
31
36
invoke build-binary
32
37
33
38
- name : Test the binary
34
- run :
39
+ shell : bash
40
+ run : |
35
41
invoke test-binary
36
42
37
43
- name : Prepare binary for upload
38
- run :
44
+ shell : bash
45
+ run : |
39
46
invoke prepare-binary
47
+
48
+ - name : Upload release binaries
49
+
50
+ env :
51
+ GITHUB_TOKEN : ${{ github.token }}
52
+ with :
53
+ asset_paths : ' ["./dist/*"]'
40
54
Original file line number Diff line number Diff line change
1
+ 0.11.1 (2021-02-13)
2
+ -------------------
3
+
4
+ * Release for testing publishing of self-contained binaries built via pyinstaller
5
+
1
6
0.11.0 (2021-01-18)
2
7
-------------------
3
8
Original file line number Diff line number Diff line change 1
- __version__ = "0.11.0 "
1
+ __version__ = "0.11.1 "
2
2
__description__ = "aws-gate - AWS SSM Session Manager client CLI"
3
3
__author__ = "Adam Stevko"
4
4
__author_email__ = "[email protected] "
Original file line number Diff line number Diff line change @@ -12,17 +12,20 @@ def build_binary(ctx):
12
12
13
13
@task
14
14
def test_binary (ctx ):
15
- ctx .run ("./ dist/ aws-gate --version" )
16
- ctx .run ("./ dist/ aws-gate --help" )
15
+ ctx .run (f" { os . path . join ( ' dist' , ' aws-gate' ) } --version" )
16
+ ctx .run (f" { os . path . join ( ' dist' , ' aws-gate' ) } --help" )
17
17
18
18
19
19
@task
20
20
def prepare_binary (ctx ): # pylint: disable=unused-argument
21
- binary_name = "aws-gate"
22
- binary_path = f"./dist/{ binary_name } "
23
- platform_suffix = f"{ platform .system ()} _{ platform .machine ()} "
24
- platform_binary_name = f"{ binary_name } -{ platform_suffix } "
25
- platform_binary_path = f"{ binary_path } -{ platform_suffix } "
21
+ if platform .system () == "Windows" :
22
+ binary_name = "aws-gate.exe"
23
+ else :
24
+ binary_name = "aws-gate"
25
+ binary_path = f"{ os .path .join ('dist' , binary_name )} "
26
+ platform_suffix = f"{ platform .system ()} _{ platform .machine ().lower ()} "
27
+ platform_binary_name = f"{ binary_name } _{ platform_suffix } "
28
+ platform_binary_path = f"{ binary_path } _{ platform_suffix } "
26
29
27
30
os .rename (binary_path , platform_binary_path )
28
31
You can’t perform that action at this time.
0 commit comments