Skip to content

Commit

Permalink
ci: Add GH CI for release (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang authored Jun 17, 2024
1 parent 98038a1 commit bdd09c0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release package

on:
release:
types:
- created
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/<your-pypi-project-name>
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install hatch
hatch env create
- name: Build
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit bdd09c0

Please sign in to comment.