Skip to content

Commit

Permalink
pypi test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Feb 23, 2024
1 parent 139af27 commit eac0ae7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pypi_test.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit eac0ae7

Please sign in to comment.