Commit f88a40c 1 parent c472ea2 commit f88a40c Copy full SHA for f88a40c
File tree 2 files changed +44
-20
lines changed
2 files changed +44
-20
lines changed Original file line number Diff line number Diff line change 21
21
- name : Analysing the code with pylint
22
22
run : |
23
23
pylint $(git ls-files '*.py')
24
-
25
- release-centos :
26
- name : Release-centos
27
- runs-on : ubuntu-latest
28
- container : centos/python-36-centos7
29
- steps :
30
- - name : Check out the codebase.
31
- uses : actions/checkout@v2
32
-
33
- - name : Install requirements.
34
- run : |
35
- pip3 install -r requirements.txt
36
-
37
- - name : Package to binary
38
- shell : bash
39
- run : |
40
- pip3 install virtualenv
41
- python3 -m virtualenv venv
42
- source venv/bin/activate
43
- pyinstaller src/amlen_exporter.py --onefile
Original file line number Diff line number Diff line change 73
73
name : Release-centos
74
74
runs-on : ubuntu-latest
75
75
container : centos/python-36-centos7
76
+ steps :
77
+ - name : Check out the codebase.
78
+ uses : actions/checkout@v2
79
+ with :
80
+ path : ' heywood8.amlen-exporter'
81
+
82
+ - name : Install requirements.
83
+ run : |
84
+ pip3 install -r requirements.txt
85
+
86
+ - name : Package to binary
87
+ shell : bash
88
+ run : |
89
+ pip3 install virtualenv
90
+ python3 -m virtualenv venv
91
+ source venv/bin/activate
92
+ pyinstaller src/amlen_exporter.py --onefile
93
+ - name : Set env
94
+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
95
+
96
+ - name : Test
97
+ run : |
98
+ echo $RELEASE_VERSION
99
+ echo ${{ env.RELEASE_VERSION }}
100
+
101
+ - name : Compress action step
102
+
103
+ id : compress
104
+ with :
105
+ command : c
106
+ cwd : ./heywood8.amlen-exporter/dist
107
+ files : |
108
+ ./amlen_exporter
109
+ outPath : amlen_exporter-${{ env.RELEASE_VERSION }}.centos7-amd64.tar.gz
110
+
111
+ - name : Upload binaries to release
112
+ uses : svenstaro/upload-release-action@v2
113
+ with :
114
+ repo_token : ${{ secrets.RELEASE_TOKEN }}
115
+ file : amlen_exporter-${{ env.RELEASE_VERSION }}.centos7-amd64.tar.gz
116
+ asset_name : amlen_exporter-${{ env.RELEASE_VERSION }}.centos7-amd64.tar.gz
117
+ tag : ${{ github.ref }}
118
+ overwrite : true
119
+ body : " Release ${{ env.RELEASE_VERSION }}"
You can’t perform that action at this time.
0 commit comments