We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095fd95 commit 664b4adCopy full SHA for 664b4ad
.github/workflows/upload_package.yml
@@ -14,8 +14,13 @@ on:
14
required: false
15
16
jobs:
17
- build:
+ build-n-publish:
18
+ name: Build and publish neatnet to PyPI
19
runs-on: ubuntu-latest
20
+ permissions:
21
+ id-token: write # MANDATORY for trusted publishing to PyPI
22
+ contents: write # MANDATORY for the Github release action
23
+
24
steps:
25
- uses: actions/checkout@v4
26
with:
@@ -28,6 +33,7 @@ jobs:
28
33
29
34
- name: Build source and wheel distributions
30
35
run: |
36
+ python -m pip install --upgrade pip
31
37
python -m pip install --upgrade build twine
32
38
python -m build
39
twine check --strict dist/*
@@ -44,6 +50,3 @@ jobs:
44
50
45
51
- name: Publish distribution 📦 to PyPI
46
52
uses: pypa/gh-action-pypi-publish@release/v1
47
- with:
48
- user: __token__
49
- password: ${{ secrets.PYPI_PASSWORD }}
0 commit comments