-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.03 KB
/
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
41
42
43
44
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: Install lets
uses: lets-cli/[email protected]
- 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 UI and copy bundle
working-directory: ./ui
run: npm run build -- --outDir ../featureflags/web/static
- 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 }}