-
-
Notifications
You must be signed in to change notification settings - Fork 210
36 lines (28 loc) · 713 Bytes
/
Copy pathpypi_release.yml
File metadata and controls
36 lines (28 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Upload release to PyPI
on:
push:
tags:
- 'v*'
workflow_dispatch: {}
permissions: write-all
jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Build package
run: hatch build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}