From eac0ae74f0ce4b07cc9ae541cf1401165a6c5e6e Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Fri, 23 Feb 2024 16:16:11 +0100 Subject: [PATCH] pypi test workflow --- .github/workflows/pypi_test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pypi_test.yml diff --git a/.github/workflows/pypi_test.yml b/.github/workflows/pypi_test.yml new file mode 100644 index 0000000..77d196a --- /dev/null +++ b/.github/workflows/pypi_test.yml @@ -0,0 +1,27 @@ +name: PyPi distribute test push +on: [push] + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + runs-on: ubuntu-latest + permissions: + id-token: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # only needed for hatch vcs versioning + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: Install Hatch + run: pip install hatch + - name: Build + run: hatch build + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/