Skip to content

Commit a90aeda

Browse files
authored
[CI] Add build number in package publishing.
1 parent 8133563 commit a90aeda

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/tensorflow1.14-py3.6-cibuild.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Nightly Build
3232
if: github.event_name != 'push' || ! startsWith(github.ref, 'refs/tags')
3333
run: |-
34-
kubectl exec -it ${PODNAME} -- cibuild/patch_build -cpu-legacy -alpha
34+
kubectl exec -it ${PODNAME} -- cibuild/patch_build -cpu-legacy a${{ github.run_id }}
3535
- name: Release Build
3636
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3737
run: |-
@@ -45,6 +45,7 @@ jobs:
4545
- name: Publish
4646
uses: pypa/gh-action-pypi-publish@release/v1
4747
with:
48+
skip_existing: true
4849
user: __token__
4950
password: ${{ secrets.PYPI_API_TOKEN }}
5051
- name: Cleanup Emvironment

.github/workflows/tensorflow1.15-py3.6-cibuild.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Nightly Build
3232
if: github.event_name != 'push' || ! startsWith(github.ref, 'refs/tags')
3333
run: |-
34-
kubectl exec -it ${PODNAME} -- cibuild/patch_build -cpu -alpha "\"tensorflow>=1.15,<2.0\""
34+
kubectl exec -it ${PODNAME} -- cibuild/patch_build -cpu a${{ github.run_id }} "\"tensorflow>=1.15,<2.0\""
3535
- name: Release Build
3636
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3737
run: |-
@@ -45,6 +45,7 @@ jobs:
4545
- name: Publish
4646
uses: pypa/gh-action-pypi-publish@release/v1
4747
with:
48+
skip_existing: true
4849
user: __token__
4950
password: ${{ secrets.PYPI_API_TOKEN }}
5051
- name: Cleanup Environment

0 commit comments

Comments
 (0)