2021-04-01 17:34:44 -07:00
|
|
|
name: CI
|
2021-05-01 00:59:23 -07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-31 17:04:56 -07:00
|
|
|
- 'master'
|
2021-05-01 00:59:23 -07:00
|
|
|
workflow_run:
|
|
|
|
workflows:
|
2022-07-31 17:04:56 -07:00
|
|
|
- 'Update protobufs'
|
2021-04-01 17:34:44 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy-website:
|
|
|
|
environment: Production
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-10-31 00:05:00 -07:00
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: 1.19
|
2021-04-01 17:34:44 -07:00
|
|
|
- name: Install Protoc
|
|
|
|
uses: arduino/setup-protoc@v1
|
2021-10-22 19:45:41 -07:00
|
|
|
with:
|
2022-10-31 00:05:00 -07:00
|
|
|
version: '3.x'
|
2021-04-01 17:34:44 -07:00
|
|
|
- name: Install protoc-gen-doc
|
|
|
|
run: go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
|
|
|
|
- name: Checkout code
|
2022-03-09 04:10:04 -08:00
|
|
|
uses: actions/checkout@v3
|
2021-04-01 17:34:44 -07:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Generate protobuf docs
|
2022-07-31 17:04:56 -07:00
|
|
|
run: protoc --doc_out="docs/developers/protobufs" --doc_opt="./protobuf.tmpl,api.mdx" --proto_path="protobufs" protobufs/*.proto
|
2021-04-01 17:34:44 -07:00
|
|
|
- uses: amondnet/vercel-action@v20
|
|
|
|
with:
|
|
|
|
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
2022-07-31 17:04:56 -07:00
|
|
|
vercel-args: '--prod'
|
2021-04-01 17:34:44 -07:00
|
|
|
vercel-org-id: ${{ secrets.ORG_ID}}
|
|
|
|
vercel-project-id: ${{ secrets.PROJECT_ID}}
|
2021-11-14 01:15:46 -08:00
|
|
|
scope: ${{ secrets.ORG_ID}}
|