Skip to content

Commit d0a13d5

Browse files
committed
undo some ci file changes.
1 parent 954fcf8 commit d0a13d5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.fernignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CODEOWNERS
44
LICENSE.md
55

66
# We need to configure secrets for integration tests.
7+
.github/workflows/ci.yml
78
.github/workflows/semgrep.yml
89

910
# Files that avoid breaking changes due to renames.

.github/workflows/ci.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
publish:
4040
needs: [compile, test]
41-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
41+
if: github.event_name == 'release'
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Checkout repo
@@ -54,8 +54,7 @@ jobs:
5454
run: poetry install
5555
- name: Publish to pypi
5656
run: |
57-
poetry config repositories.remote https://upload.pypi.org/legacy/
58-
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
57+
poetry config pypi-token.pypi $PYPI_TOKEN
58+
poetry --no-interaction -v publish --build
5959
env:
60-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
61-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
60+
PYPI_TOKEN: ${{ secrets.MERGE_PYPI_TOKEN }}

0 commit comments

Comments
 (0)