10
10
commit :
11
11
description : Commit to be released
12
12
required : false
13
- rc :
14
- description : " release candidate"
15
- required : false
16
- default : false
17
- type : boolean
18
13
19
14
defaults :
20
15
run :
@@ -27,7 +22,6 @@ concurrency:
27
22
env :
28
23
VERSION : " ${{ github.event.inputs.version }}"
29
24
COMMIT : " ${{ github.event.inputs.commit }}"
30
- RELEASE_CANDIDATE : " ${{ github.event.inputs.rc }}"
31
25
32
26
jobs :
33
27
test :
@@ -76,29 +70,22 @@ jobs:
76
70
environment : staging
77
71
runs-on : ubuntu-latest
78
72
needs : test
73
+ env :
74
+ PACKAGE_NAME : " logsmith_linux_${VERSION}.zip"
79
75
80
76
steps :
81
77
- name : Checkout
82
78
uses : actions/checkout@v3
83
79
with :
84
80
ref : ${{ env.COMMIT }}
85
81
86
- - name : Set package name
87
- run : |
88
- if [ "${{ env.RELEASE_CANDIDATE }}" = "true" ]; then
89
- export PACKAGE_NAME="logsmith_linux_${VERSION}-rc.zip" >> $GITHUB_ENV
90
- else
91
- export PACKAGE_NAME="logsmith_linux_${VERSION}.zip" >> $GITHUB_ENV
92
- fi
93
-
94
82
- name : Setup Python
95
83
uses : actions/setup-python@v4
96
84
with :
97
85
python-version : 3.11
98
86
99
87
- name : Setup Project
100
88
run : |
101
- sudo apt-get install libxcb-cursor0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0
102
89
python -m pip install --upgrade pip
103
90
pip install -r requirements.txt
104
91
@@ -115,17 +102,10 @@ jobs:
115
102
commit=${GITHUB_SHA}
116
103
fi
117
104
118
- if [ "${{ env.RELEASE_CANDIDATE }}" = "true" ]; then
119
- version="${VERSION}-rc"
120
- else
121
- version="${VERSION}"
122
- fi
123
-
124
-
125
105
pip install requests
126
106
./ci/release.py \
127
107
--repository "${{ github.repository }}" \
128
- --version "${version }" \
108
+ --version "${{ env.VERSION } }" \
129
109
--commit "${commit}" \
130
110
--token "${{ secrets.GITHUB_TOKEN }}" \
131
111
--asset "${{ env.PACKAGE_NAME }}"
@@ -135,21 +115,15 @@ jobs:
135
115
environment : staging
136
116
runs-on : macos-latest
137
117
needs : test
118
+ env :
119
+ PACKAGE_NAME : " logsmith_darwin_${VERSION}.zip"
138
120
139
121
steps :
140
122
- name : Checkout
141
123
uses : actions/checkout@v3
142
124
with :
143
125
ref : ${{ env.COMMIT }}
144
126
145
- - name : Set package name
146
- run : |
147
- if [ "${{ env.RELEASE_CANDIDATE }}" = "true" ]; then
148
- export PACKAGE_NAME="logsmith_darwin_${VERSION}-rc.zip" >> $GITHUB_ENV
149
- else
150
- export PACKAGE_NAME="logsmith_darwin_${VERSION}.zip" >> $GITHUB_ENV
151
- fi
152
-
153
127
- name : Setup Python
154
128
uses : actions/setup-python@v4
155
129
with :
@@ -173,16 +147,10 @@ jobs:
173
147
commit=${GITHUB_SHA}
174
148
fi
175
149
176
- if [ "${{ env.RELEASE_CANDIDATE }}" = "true" ]; then
177
- version="${VERSION}-rc"
178
- else
179
- version="${VERSION}"
180
- fi
181
-
182
150
pip install requests
183
151
./ci/release.py \
184
152
--repository "${{ github.repository }}" \
185
- --version "${version }" \
153
+ --version "${{ env.VERSION } }" \
186
154
--commit "${commit}" \
187
155
--token "${{ secrets.GITHUB_TOKEN }}" \
188
156
--asset "${{ env.PACKAGE_NAME }}"
0 commit comments