We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3087447 commit ba1dea2Copy full SHA for ba1dea2
.github/workflows/release.yml
@@ -4,14 +4,18 @@ on:
4
release:
5
types: [published]
6
7
-permissions:
8
- contents: read
9
-
10
jobs:
11
deploy:
12
+ name: Upload release to PyPI
13
runs-on: ubuntu-latest
14
+ environment:
+ name: pypi
+ url: https://pypi.org/p/pygrep
15
+ permissions:
16
+ contents: read
17
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
18
+
19
steps:
20
- uses: actions/checkout@v3
21
- name: Set up Python
@@ -26,6 +30,3 @@ jobs:
26
30
run: python -m build
27
31
- name: Publish package
28
32
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
29
- with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments