Skip to content

Commit

Permalink
docs: generate docs on main build
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Oct 18, 2023
1 parent ed976fa commit a4a0833
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate Discord
run: |
docker run --rm \
-v $(pwd)/docs:/out \
-v $(pwd)/discord:/protos \
pseudomuto/protoc-gen-doc --doc_opt=markdown,discord.md
- name: Generate Discord
run: |
docker run --rm \
-v $(pwd)/docs:/out \
-v $(pwd)/health:/protos \
pseudomuto/protoc-gen-doc --doc_opt=markdown,health.md
- name: Commit and Push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: update docs [skip ci]"
commit_options: '--no-verify --signoff'
access_token: ${{ secrets.GITHUB_TOKEN }}



Empty file added docs/.gitkeep
Empty file.

0 comments on commit a4a0833

Please sign in to comment.