-
Notifications
You must be signed in to change notification settings - Fork 16
76 lines (61 loc) 路 1.68 KB
/
Copy pathci.yaml
File metadata and controls
76 lines (61 loc) 路 1.68 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
72
73
74
75
76
on:
push:
branches:
- '**'
pull_request:
workflow_call:
inputs:
ref:
description: Ref of this repository to build.
required: false
type: string
default: main
name: CI
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
repository: vrchatapi/vrchatapi-python
ref: ${{ inputs.ref || github.ref }}
- uses: vrchatapi/specification/.github/actions/setup-generator@ci/modernise-actions
- uses: vrchatapi/specification/.github/actions/download@ci/modernise-actions
with:
bundle: openapi-legacy.yaml
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
- uses: actions/upload-artifact@v7
with:
name: generated-python
path: .
include-hidden-files: true
build:
needs: generate
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v8
with:
name: generated-python
- uses: actions/setup-python@v7
with:
python-version: '3.14'
cache: pip
- run: python -m pip install build
- run: python -m build
- uses: actions/upload-artifact@v7
with:
name: dist-python
path: dist
install:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v8
with:
name: dist-python
path: dist
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- run: python -m pip install dist/*.whl
- run: python -c "import vrchatapi; print(vrchatapi.__name__)"