feat: configure semantic release to publish from alpha and beta branches #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: | |
- main | |
- alpha | |
- beta | |
jobs: | |
publish_docs: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'chore(release)')" | |
steps: | |
- uses: bufbuild/buf-setup-action@v1 | |
- name: "Generate Proto Filedescriptor" | |
# Normally generated in the Gradle prepareForDocker step, but the ciBuild flag disables that | |
run: | | |
cd protos | |
mkdir -p ../app/build/docker | |
buf build -o ../app/build/docker/descriptor.binpb | |
- run: ./gradlew prepareForDocker -PciBuild | |
# This should be done in the docs workflow | |
- name: "Generate OpenAPI spec" | |
run: | | |
cd protos | |
buf generate | |
cp gen/openapi.yaml ../docs/.gitbook.yaml | |
- name: "Generate API Reference Docs" | |
run: | | |
cd scripts/docs | |
pip install pyyaml | |
python generate.py |