Skip to content

Commit e2f554a

Browse files
committed
Run publish workflow only when pushing git tags
1 parent ad71748 commit e2f554a

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
name: Build and publish Python distributions to PyPI
77
runs-on: ubuntu-latest
88
# We only execute this step if the commit is tagged, i.e., this is a release
9-
#if: startsWith(github.ref, 'refs/tags')
9+
if: startsWith(github.ref, 'refs/tags')
1010
# Use the following for PyPI deployments
11-
# environment:
12-
# name: pypi
13-
# url: https://pypi.org/p/simulaqron
14-
# Use the following for TestPyPI deployments
1511
environment:
16-
name: testpypi
17-
url: https://test.pypi.org/p/simulaqron
12+
name: pypi
13+
url: https://pypi.org/p/simulaqron
14+
# Use the following for TestPyPI deployments
15+
# environment:
16+
# name: testpypi
17+
# url: https://test.pypi.org/p/simulaqron
1818
permissions:
1919
id-token: write
2020
steps:
@@ -38,9 +38,9 @@ jobs:
3838
--wheel
3939
--outdir dist/
4040
.
41-
- name: Publish distribution to Test PyPI
42-
uses: pypa/gh-action-pypi-publish@release/v1.14
43-
with:
44-
repository_url: https://test.pypi.org/legacy/
45-
# - name: Publish distribution to PyPI
46-
# uses: pypa/gh-action-pypi-publish@master
41+
# - name: Publish distribution to Test PyPI
42+
# uses: pypa/gh-action-pypi-publish@release/v1.14
43+
# with:
44+
# repository_url: https://test.pypi.org/legacy/
45+
- name: Publish distribution to PyPI
46+
uses: pypa/gh-action-pypi-publish@release/v1.14

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ examples:
5353
@cd examples/new-sdk/teleport && bash terminate.sh && sleep 3
5454
@cd examples/new-sdk/midCircuitLogic && timeout 90 bash run.sh
5555
@cd examples/new-sdk/midCircuitLogic && bash terminate.sh && sleep 3
56-
@cd examples/nativeMode/teleport && bash terminate.sh && sleep 3
56+
@cd examples/native-mode/teleport && bash terminate.sh && sleep 3
5757
@echo "Chosen examples passed."
5858

5959
install: test-deps

0 commit comments

Comments
 (0)