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 0f05b6d commit bb9e242Copy full SHA for bb9e242
.github/workflows/publish.yml
@@ -7,6 +7,11 @@ on:
7
jobs:
8
build-and-publish:
9
runs-on: ubuntu-latest
10
+ environment:
11
+ name: pypi
12
+ url: https://pypi.org/p/python-jsonstore
13
+ permissions:
14
+ id-token: write
15
steps:
16
- uses: actions/checkout@v4
17
- name: Set up Python
@@ -17,7 +22,7 @@ jobs:
22
run: |
18
23
python -m pip install --upgrade pip build
19
24
python -m build
25
+ # the publishing uses PyPI's trusted publishing, so configured on pypi instead of using secrets
20
26
- name: Publish to PyPI
21
- uses: pypa/gh-action-pypi-publish@v1
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
27
+ uses: pypa/gh-action-pypi-publish@release/v1
28
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
0 commit comments