Skip to content

Commit 60fba7c

Browse files
committed
Fix dist version in CI/CD on pushes to develop
1 parent a0d4e5e commit 60fba7c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test-library.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,40 @@ jobs:
319319
--parallel-live
320320
--skip-missing-interpreters false
321321
--notest
322+
323+
- name: Setup git user as [bot]
324+
if: >-
325+
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
326+
run: >
327+
git config --local user.email
328+
'github-actions[bot]@users.noreply.github.com'
329+
330+
git config --local user.name 'github-actions[bot]'
331+
- name: >-
332+
Tag the release in the local Git repo
333+
as ${{ needs.pre-setup.outputs.git-tag }}
334+
for setuptools-scm to se the desired version
335+
if: >-
336+
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
337+
run: >-
338+
git tag
339+
-m '${{ needs.pre-setup.outputs.git-tag }}'
340+
'${{ needs.pre-setup.outputs.git-tag }}'
341+
--
342+
${{ github.event.inputs.release-commitish }}
343+
322344
- name: Build dists
323345
run: >-
324346
python -m
325347
tox
326348
--parallel auto
327349
--parallel-live
328350
--skip-missing-interpreters false
351+
- name: Verify that the artifacts with expected names got created
352+
run: >-
353+
ls -1
354+
'dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}'
355+
'dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}'
329356
- name: Store the distribution packages
330357
uses: actions/upload-artifact@v2
331358
with:

0 commit comments

Comments
 (0)