Skip to content

Commit

Permalink
PyPi: Added publish.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Pedersen <[email protected]>
  • Loading branch information
CTXz committed Jun 22, 2024
1 parent 86ec2b2 commit a2123a3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to PyPI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install build dependencies
run: pip install hatchling

- name: Build the package
run: hatch build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a2123a3

Please sign in to comment.