Skip to content

Commit faafebd

Browse files
committed
ci: fix release pipeline
1 parent 5d3f86d commit faafebd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
tags:
66
- 'v*.*.*'
77

8+
permissions:
9+
contents: write
10+
811
env:
9-
RELEASE_TYPE: "test" # "test" or "release"
12+
RELEASE_TYPE: "release" # "test" or "release"
1013
POETRY_VERSION: "1.7.1"
1114

1215
jobs:
@@ -53,10 +56,10 @@ jobs:
5356
run: |
5457
poetry config repositories.test-pypi https://test.pypi.org/legacy/
5558
poetry publish -r test-pypi
56-
if: ${{ env.RELEASE_TYPE }} == "test"
59+
if: env.RELEASE_TYPE == 'test'
5760

5861
- name: Publish to PyPI
5962
env:
6063
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
6164
run: poetry publish
62-
if: ${{ env.RELEASE_TYPE }} == "release"
65+
if: env.RELEASE_TYPE == 'release'

0 commit comments

Comments
 (0)