-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.14 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Generate documentation
on:
push:
branches: [ "main" ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
gen_html_documentaiton:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # Required to mount the Github Workspace to a volume
- name: protoc-gen-doc
uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: pseudomuto/protoc-gen-doc
options: -v ${{ github.workspace }}:/protos -v ${{ github.workspace }}/docs:/out
run: |
echo "Running generation"
"./entrypoint.sh"
echo "Finished generation"
- name: Upload artifact for pages
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: ${{ github.workspace }}/docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2