File tree Expand file tree Collapse file tree 3 files changed +912
-24
lines changed
Expand file tree Collapse file tree 3 files changed +912
-24
lines changed Original file line number Diff line number Diff line change @@ -17,34 +17,28 @@ jobs:
1717 release-type : python
1818 package-name : snakemake-interface-stroage-plugins
1919
20- publish :
20+
21+ publish-pypi :
2122 runs-on : ubuntu-latest
2223 needs : release-please
2324 if : ${{ needs.release-please.outputs.release_created }}
24- steps :
25- - uses : actions/checkout@v3
26-
27- - uses : actions/setup-python@v4
28- with :
29- python-version : " 3.11"
30-
31- - name : Install poetry
32- run : pip install poetry
3325
34- - name : Determine dependencies
35- run : poetry lock
26+ steps :
27+ - uses : actions/checkout@v4
3628
37- - uses : actions/setup-python@v4
29+ - name : Install Pixi
30+ uses :
prefix-dev/[email protected] 3831 with :
39- python-version : " 3.11 "
40- cache : poetry
32+ environments : publish
33+ pixi-version : v0.42.1
4134
42- - name : Install Dependencies using Poetry
35+ - name : Build source and wheel distribution + check build
36+ # this will build the source and wheel into the dist/ directory
4337 run : |
44- poetry install
38+ pixi run --environment publish check-build
4539
46- - name : Publish to PyPi
40+ - name : Publish distribution to PyPI
41+ uses : pypa/gh-action-pypi-publish@release/v1
4742 env :
4843 PYPI_USERNAME : __token__
4944 PYPI_PASSWORD : ${{ secrets.PYPI_TOKEN }}
50- run : poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
You can’t perform that action at this time.
0 commit comments