-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.09 KB
/
release.yml
File metadata and controls
47 lines (45 loc) · 1.09 KB
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
40
41
42
43
44
45
46
47
name: release
on:
push:
tags:
- "v*"
jobs:
test:
uses: ./.github/workflows/test.yml
build:
name: build distribution
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel build
python3 -m build
- uses: actions/upload-artifact@v6
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl
publish-to-pypi:
name: upload release to PyPI
if: startsWith(github.ref, 'refs/tags/v') # only publish on tag pushes
needs: build
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/bubble-data-api-client
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v7
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1