forked from be-smith/navani
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 908 Bytes
/
release.yml
File metadata and controls
39 lines (30 loc) · 908 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
37
38
39
name: Publish navani to PyPI
on:
release:
types:
- published
jobs:
publish-to-pypi:
name: Build and Publish navani to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'be-smith/navani'
permissions:
id-token: write
environment:
name: release
url: https://pypi.org/project/navani
steps:
- name: Checkout repository at the release tag
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build dependencies
run: python -m pip install --upgrade pip build
- name: Build source distribution and wheel
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1