blob: 3c34e1f31e649679548a0c365bb3a224dc67d200 (
plain)
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: Release
on:
push:
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install node dependencies
run: |
yarn install --frozen-lockfile
- name: Install python dependencies
run: |
pip install uv
uv sync --no-group dev
- name: Build package
run: |
yarn build
uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
if: github.event_name != 'pull_request'
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
|