-
Notifications
You must be signed in to change notification settings - Fork 358
71 lines (69 loc) · 1.99 KB
/
release.yaml
File metadata and controls
71 lines (69 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
ui-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
run: pnpm install
- name: Build UI
run: pnpm --prefix web/client run build
- name: Upload UI build artifact
uses: actions/upload-artifact@v5
with:
name: ui-dist
path: web/client/dist/
retention-days: 1
publish:
needs: ui-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Download UI build artifact
uses: actions/download-artifact@v4
with:
name: ui-dist
path: web/client/dist/
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install build dependencies
run: pip install build twine setuptools_scm
- name: Publish Python package
run: make publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- name: Update pypirc for private repository
run: ./.github/scripts/update-pypirc.sh
env:
TOBIKO_PRIVATE_PYPI_URL: ${{ secrets.TOBIKO_PRIVATE_PYPI_URL }}
TOBIKO_PRIVATE_PYPI_KEY: ${{ secrets.TOBIKO_PRIVATE_PYPI_KEY }}
- name: Publish Python Tests package
run: unset TWINE_USERNAME TWINE_PASSWORD && make publish-tests
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Create release on GitHub
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
tag_name: ${{ github.ref_name }}