-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 941 Bytes
/
release.yaml
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 & publish
on:
push:
tags:
- "v*"
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
python-version: [3.11]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 20
cache-dependency-path: ./ui/package-lock.json
cache: 'npm'
- name: Install dependencies
working-directory: ./ui
run: npm install
- name: Build and copy UI bundle
run: ./scripts/build-copy-ui-dist.sh
- name: Set up Python with PDM ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
version: 2.18.0
- name: Upload package to pypi.org
run: pdm publish -u "__token__" -P ${{ secrets.PYPI_TOKEN }}