Skip to content

Use schedule-spec-row for class (#1608) #386

Use schedule-spec-row for class (#1608)

Use schedule-spec-row for class (#1608) #386

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"