-
Notifications
You must be signed in to change notification settings - Fork 71
52 lines (45 loc) · 1.34 KB
/
update-ui-server.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
name: Update UI Server
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Checkout and Setup Node
uses: ./.github/actions/checkout-and-setup
- uses: actions/setup-go@v3
with:
go-version-file: server/go.mod
cache: true
cache-dependency-path: server/go.sum
- name: Setup Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build GRPC
run: cd server && make install-utils build-grpc
- name: Checkout UI Server
uses: actions/checkout@v3
with:
repository: temporalio/ui-server
path: ui-server
ref: main
token: ${{ secrets.COMMANDER_DATA_TOKEN }}
- name: Build UI
run: pnpm build:server
- name: Sync UI Server
run: |
rm -rf ui-server/*
rm -rf server/proto/dependencies/api
cp -r server/* ui-server
cd ui-server
git config --local user.name 'Temporal Data (cicd)'
git config --local user.email '[email protected]'
git add .
git commit -m "Update UI Server" && git push || echo "No changes to commit"