3131 env :
3232 DOCKER_CLIENT_TIMEOUT : " 120"
3333 COMPOSE_HTTP_TIMEOUT : " 120"
34- PY_VER : " 3.8 "
34+ PY_VER : " 3.9 "
3535 IMAGE : " djtest"
3636 DISTRO : " alpine"
3737 steps :
@@ -86,11 +86,10 @@ jobs:
8686 path : " image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-\
8787 ${{matrix.distro}}.tar.gz"
8888 retention-days : 1
89- - if : matrix.py_ver == '3.8' && matrix.distro == 'alpine'
90- name : Add pip artifacts
89+ - name : Add pip artifacts
9190 uses : actions/upload-artifact@v2
9291 with :
93- name : pip-pharus-${{env.PHARUS_VERSION}}
92+ name : pip-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}
9493 path : dist
9594 retention-days : 1
9695 test :
@@ -170,10 +169,15 @@ jobs:
170169 uses : actions/download-artifact@v2
171170 with :
172171 name : image-pharus-${{env.PHARUS_VERSION}}-py3.8-alpine
173- - name : Fetch pip artifacts
172+ - name : Fetch 3.8 pip artifacts
174173 uses : actions/download-artifact@v2
175174 with :
176- name : pip-pharus-${{env.PHARUS_VERSION}}
175+ name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8
176+ path : dist
177+ - name : Fetch 3.9 pip artifacts
178+ uses : actions/download-artifact@v2
179+ with :
180+ name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8
177181 path : dist
178182 - name : Publish pip release
179183 run : |
@@ -186,23 +190,41 @@ jobs:
186190 run : |
187191 echo "PHARUS_WHEEL_PATH=$(ls dist/pharus-*.whl)" >> $GITHUB_ENV
188192 echo "PHARUS_SDIST_PATH=$(ls dist/pharus-*.tar.gz)" >> $GITHUB_ENV
189- - name : Upload pip wheel asset to release
193+ - name : Upload 3.8 pip wheel asset to release
190194 uses : actions/upload-release-asset@v1
191195 env :
192196 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
193197 with :
194198 upload_url : ${{steps.create_gh_release.outputs.upload_url}}
195199 asset_path : ${{env.PHARUS_WHEEL_PATH}}
196- asset_name : pip-pharus-${{env.PHARUS_VERSION}}.whl
200+ asset_name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8 .whl
197201 asset_content_type : application/zip
198- - name : Upload pip sdist asset to release
202+ - name : Upload 3.9 pip wheel asset to release
203+ uses : actions/upload-release-asset@v1
204+ env :
205+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
206+ with :
207+ upload_url : ${{steps.create_gh_release.outputs.upload_url}}
208+ asset_path : ${{env.PHARUS_WHEEL_PATH}}
209+ asset_name : pip-pharus-${{env.PHARUS_VERSION}}-py3.9.whl
210+ asset_content_type : application/zip
211+ - name : Upload 3.8 pip sdist asset to release
212+ uses : actions/upload-release-asset@v1
213+ env :
214+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
215+ with :
216+ upload_url : ${{steps.create_gh_release.outputs.upload_url}}
217+ asset_path : ${{env.PHARUS_SDIST_PATH}}
218+ asset_name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8.tar.gz
219+ asset_content_type : application/gzip
220+ - name : Upload 3.9 pip sdist asset to release
199221 uses : actions/upload-release-asset@v1
200222 env :
201223 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
202224 with :
203225 upload_url : ${{steps.create_gh_release.outputs.upload_url}}
204226 asset_path : ${{env.PHARUS_SDIST_PATH}}
205- asset_name : pip-pharus-${{env.PHARUS_VERSION}}.tar.gz
227+ asset_name : pip-pharus-${{env.PHARUS_VERSION}}-py3.9 .tar.gz
206228 asset_content_type : application/gzip
207229 - name : Upload deploy docker environment
208230 uses : actions/upload-release-asset@v1
0 commit comments