meshtastic/.github/workflows/ci.yml

35 lines
1,012 B
YAML
Raw Normal View History

2021-04-01 17:34:44 -07:00
name: CI
2021-05-01 00:59:23 -07:00
on:
push:
branches:
- "master"
workflow_run:
workflows:
- "Update protobufs"
2021-04-01 17:34:44 -07:00
jobs:
deploy-website:
environment: Production
runs-on: ubuntu-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install Go
uses: actions/setup-go@v2
- name: Install protoc-gen-doc
run: go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Generate protobuf docs
2021-04-11 18:29:30 -07:00
run: protoc --doc_out="website/docs/developers/protobufs" --doc_opt="./website/protobuf.tmpl,api.md" --proto_path="protobufs" protobufs/*.proto
2021-04-01 17:34:44 -07:00
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: "--prod"
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
2021-04-01 21:48:46 -07:00
working-directory: website