File tree 1 file changed +13
-22
lines changed 1 file changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -21,29 +21,20 @@ jobs:
21
21
python-version : " 3.10"
22
22
23
23
- name : Install Poetry
24
- run : python install-poetry.py -y
25
-
26
- - name : Update PATH
27
- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
28
-
29
- - name : Build project for distribution
24
+ uses : snok/install-poetry@v1
25
+ with :
26
+ version : 1.1.13
27
+
28
+ - name : Install dependencies
29
+ run : poetry install
30
+
31
+ - name : Build
30
32
run : poetry build
31
33
32
- - name : Check Version
33
- id : check-version
34
+ - name : Config for PyPI release
34
35
run : |
35
- [[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
36
- || echo ::set-output name=prerelease::true
36
+ poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
37
37
38
- - name : Create Release
39
- uses : ncipollo/release-action@v1
40
- with :
41
- artifacts : " dist/*"
42
- token : ${{ secrets.GITHUB_TOKEN }}
43
- draft : false
44
- prerelease : steps.check-version.outputs.prerelease == 'true'
45
-
46
- - name : Publish to PyPI
47
- env :
48
- POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
49
- run : poetry publish
38
+ - name : Publish
39
+ run : |
40
+ poetry publish
You can’t perform that action at this time.
0 commit comments