Skip to content

Commit

Permalink
Add skeleton to publish package to testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel-van-de-Plassche committed Jan 17, 2025
1 parent 86364a5 commit 1d060fb
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/package-with-conda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Package with Conda
name: 🐍 Package 📦 with Conda and PyPI

on: [push]

Expand Down Expand Up @@ -35,3 +35,26 @@ jobs:
conda install pytest
conda develop .
pytest
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build-linux
runs-on: ubuntu-latest

environment:
name: default
url: https://test.pypi.org/p/snuffelfiets

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 1d060fb

Please sign in to comment.