Commit 5b5310e 1 parent 84e7ef4 commit 5b5310e Copy full SHA for 5b5310e
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
deploy :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ # IMPORTANT: this permission is mandatory for trusted publishing
13
+ id-token : write
14
+ contents : write
11
15
steps :
12
16
- uses : actions/checkout@v3
13
17
with :
@@ -24,13 +28,11 @@ jobs:
24
28
run : |
25
29
python -m pip install -U pip poetry mkdocs mkdocs-material
26
30
poetry --version
27
- poetry install
31
+ poetry build
28
32
- name : Publish
29
- env :
30
- PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
31
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
32
- run : |
33
- poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
33
+ uses : pypa/gh-action-pypi-publish@release/v1
34
+ with :
35
+ packages-dir : dist
34
36
- name : Create release Version
35
37
run : gh release create ${{ steps.vars.outputs.tag }} --generate-notes
36
38
env :
You can’t perform that action at this time.
0 commit comments