Skip to content

Commit 8ab7146

Browse files
Ro6afFalehander92
authored andcommitted
ci: push to PyPI only on tags
1 parent b9c4912 commit 8ab7146

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/codetracer.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ jobs:
622622
- test-rust
623623
- test-python-recorder
624624
- test-ui-tests
625-
# - create-release
626-
# if: startsWith(github.ref, 'refs/tags/')
625+
- create-release
626+
if: startsWith(github.ref, 'refs/tags/')
627627
runs-on: ubuntu-latest
628628
steps:
629629
- name: Download built distributions
@@ -637,12 +637,11 @@ jobs:
637637
with:
638638
packages_dir: dist
639639
repository-url: https://test.pypi.org/legacy/
640-
verbose: true
641640

642-
# - name: Publish to PyPI
643-
# uses: pypa/gh-action-pypi-publish@release/v1
644-
# with:
645-
# packages_dir: dist
641+
- name: Publish to PyPI
642+
uses: pypa/gh-action-pypi-publish@release/v1
643+
with:
644+
packages_dir: dist
646645

647646
push-to-cachix:
648647
runs-on: [self-hosted, nixos]

0 commit comments

Comments
 (0)