-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
104 lines (89 loc) · 2.51 KB
/
action.yml
File metadata and controls
104 lines (89 loc) · 2.51 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: "Build SDKs"
description: "build sdks"
inputs:
version:
description: "Version number"
required: true
NODE_AUTH_TOKEN:
description: "Token for access to github package registry"
required: true
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://npm.pkg.github.com'
- name: Npm install
working-directory: .
env:
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
run: npm ci
shell: bash
- name: make ts folder
working-directory: ./sdk
shell: bash
run: mkdir typescript
- name: make html folder
working-directory: ./sdk
shell: bash
run: mkdir html
- name: make python folder
working-directory: ./sdk
shell: bash
run: mkdir python
- name: make swagger folder
working-directory: ./sdk
shell: bash
run: mkdir swagger
- name: make csharp folder
working-directory: ./sdk
shell: bash
run: mkdir csharp
- name: Build sdks
working-directory: ./sdk
shell: bash
run: |
make build VERSION="${{ inputs.version }}"
- name: Upload API OAS specification artifact
uses: actions/upload-artifact@v4
with:
path: "build"
name: api-oas-specification-${{ inputs.version }}
- name: Upload html artifact
uses: actions/upload-artifact@v4
with:
path: "sdk/html"
name: sdk-html-${{ inputs.version }}
- name: Upload swagger artifact
uses: actions/upload-artifact@v4
with:
path: "sdk/swagger"
name: sdk-swagger-${{ inputs.version }}
- name: Upload ts artifact
uses: actions/upload-artifact@v4
with:
path: "sdk/typescript"
name: sdk-ts-${{ inputs.version }}
- name: Upload python artifact
uses: actions/upload-artifact@v4
with:
path: "sdk/python"
name: sdk-python-${{ inputs.version }}
- name: Upload csharp artifact
uses: actions/upload-artifact@v4
with:
path: "sdk/csharp"
name: sdk-csharp-${{ inputs.version }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "sdk/html/"
name: sdk-html-docs-${{ inputs.version }}
- name: Upload swagger pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: "sdk/swagger/"
name: sdk-swagger-docs-${{ inputs.version }}