-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (30 loc) · 944 Bytes
/
gen-docs.yaml
File metadata and controls
32 lines (30 loc) · 944 Bytes
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
name: Generate documentation
on:
push:
branches:
- master
jobs:
generate-documentation:
runs-on: ubuntu-latest
container:
image: pseudomuto/protoc-gen-doc:1.5.1
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Print path
run: echo "${{ github.workspace }}/protobuf_definitions"
- name: Create output configDirectory
run: mkdir -p docs
- name: List files
run: ls -la
- name: Generate documentation
run: protoc --doc_out=docs --doc_opt=html,protocol.html --proto_path=protobuf_definitions protobuf_definitions/*.proto
- name: List doc files
run: ls -la docs
- name: Publish artifacts
uses: fixpoint/azblob-upload-artifact@v4
with:
connection-string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
container: protocoldefinitions
name: docs
path: docs