Skip to content

Commit

Permalink
updated action to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalpuffin committed Jan 14, 2024
1 parent 92c4e0b commit 597547a
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Test Python Package
name: Publish Package

on:
push:
branches: ["main"]

jobs:
build:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: |
3.9
Expand All @@ -20,3 +23,7 @@ jobs:
run: pipx install hatch
- name: Run tests
run: hatch run all:test
- name: Build dist
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 597547a

Please sign in to comment.