Skip to content

Commit 7f64577

Browse files
committed
chore: update release workflow to use Pixi for publishing and add publish environment in pyproject.toml
1 parent 04a420e commit 7f64577

File tree

3 files changed

+912
-24
lines changed

3 files changed

+912
-24
lines changed

.github/workflows/release-please.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)