File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ name: publish
7
7
# Control variables (GitHub Secrets)
8
8
# -----------------
9
9
#
10
- # At the GitHub 'organisation' or 'project' level you must have the following
11
- # GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
12
- #
13
- # PYPI_USERNAME
14
- # PYPI_TOKEN
10
+ # None
15
11
#
16
12
# -----------
17
13
# Environment (GitHub Environments)
27
23
jobs :
28
24
build-and-publish :
29
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
30
28
steps :
31
29
- name : Checkout
32
30
uses : actions/checkout@v4
45
43
python -m build --sdist --wheel --outdir dist/
46
44
- name : Publish
47
45
uses : pypa/gh-action-pypi-publish@release/v1
48
- with :
49
- user : ${{ secrets.PYPI_USERNAME }}
50
- password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments