meshtastic/.github/workflows/ci.yml

39 lines
1.1 KiB
YAML

name: CI
on:
push:
branches:
- 'master'
workflow_run:
workflows:
- 'Update protobufs'
jobs:
deploy-website:
environment: Production
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
#- name: Install Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.19
#- name: Install Protoc
# uses: arduino/setup-protoc@v1
# with:
# version: '3.x'
#- name: Install protoc-gen-doc
# run: go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
#- name: Generate protobuf docs
# run: protoc --doc_out="docs/developers/Protobufs" --doc_opt="./protobuf.tmpl,api.mdx" --proto_path="protobufs" protobufs/*.proto
- 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}}
scope: ${{ secrets.ORG_ID}}