We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3398fcc commit 5179e27Copy full SHA for 5179e27
.github/workflows/publish.yml
@@ -12,7 +12,9 @@ jobs:
12
13
publish:
14
runs-on: ubuntu-latest
15
+ if: github.ref == 'refs/heads/main'
16
env:
17
+ TWINE_USERNAME: "__token__"
18
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
19
TWINE_REPOSITORY_URL: "https://pypi.org/simple/"
20
steps:
.github/workflows/publish_test.yml
@@ -6,12 +6,14 @@ env:
6
on:
7
push:
8
tags:
9
- - '*'
+ - 'v*'
10
11
jobs:
+ if: github.ref != 'refs/heads/main'
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_REPOSITORY_URL: "https://test.pypi.org/simple/"
0 commit comments