-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (62 loc) · 1.82 KB
/
release.yml
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
name: Release
on:
release:
type: [ prereleased, released ]
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Npm Install
run: npm install -g @darabonba/cli
- name: Sdk Build
working-directory: ./sdk
run: |
dara install darabonba:Util -S
dara install alibabacloud:OpenApiUtil -S
dara codegen java ./java
dara codegen csharp ./csharp
dara codegen python ./python
dara codegen python2 ./python2
dara codegen go ./go
dara codegen php ./php
dara codegen ts ./ts
- name: Sample Build
working-directory: ./sample
run: |
cp -R ../sdk/libraries/ ./
dara install darabonba:Util -S
dara install alibabacloud:OpenApiUtil -S
dara codegen java ./java
dara codegen csharp ./csharp
dara codegen python ./python
dara codegen python2 ./python2
dara codegen go ./go
dara codegen php ./php
dara codegen ts ./ts
- name: Cleanup
working-directory: ./
run: |
rm -rf \
.github \
sdk/libraries \
sdk/.libraries.json \
sdk/Darafile \
sdk/main.dara \
sample/libraries \
sample/.libraries.json \
sample/Darafile \
sample/main.dara \
.gitignore \
LICENSE \
README.md
- name: Zip
run: zip -r DevKit.zip ./*
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} DevKit.zip