Skip to content

Commit fe3ff72

Browse files
author
oanatmaria
committed
Use token for release
1 parent 3bac392 commit fe3ff72

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ jobs:
8080
token: ${{ secrets.VAULT_TOKEN }}
8181
secrets: |
8282
kv/data/github "SSH_PRIVATE_KEY" | SSH_PRIVATE_KEY;
83-
kv/data/pypi "USERNAME" | POETRY_HTTP_BASIC_PYPI_USERNAME;
84-
kv/data/pypi "PASSWORD" | POETRY_HTTP_BASIC_PYPI_PASSWORD;
83+
kv/data/pypi "API_TOKEN" | POETRY_HTTP_BASIC_PYPI_PASSWORD;
8584
8685
- name: Checkout
8786
uses: actions/checkout@v3
@@ -128,6 +127,9 @@ jobs:
128127
uses: snok/install-poetry@v1
129128

130129
- name: Build and push the python package
130+
env:
131+
# When using a PYPI API token, the user name must be set to "__token__"
132+
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
131133
run: go run mage.go release
132134

133135
- name: Bump to the next version

0 commit comments

Comments
 (0)