-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.04 KB
/
release.yml
File metadata and controls
40 lines (32 loc) · 1.04 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
name: Build & Release
on:
release:
types: [created]
jobs:
# Build the namespace packages
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: |
uv pip install --system build twine
- name: Build
run: |
echo "Building ${{ github.event.release.tag_name }}"
echo "Release notes: ${{ github.event.release.body }}"
make build
- name: Upload
run: |
echo "Uploading ${{ github.event.release.tag_name }}"
make publish \
USERNAME=__token__ \
PASSWORD=${{ secrets.PYPI_TOKEN }}