-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.14 KB
/
go-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
36
37
38
39
40
41
name: Docs
concurrency: ci-${{ github.ref }}
on:
push:
branches: [develop]
paths:
- "**/*.go"
- "!docs/**"
workflow_dispatch:
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {
name: Linux,
os: ubuntu-latest,
}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Generate docs
run: |
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG Depedency Updater"
git checkout ${{ github.head_ref || github.ref_name }}
go run github.com/swaggo/swag/cmd/swag@latest init -d cmd/catalog-api/,server/
git add docs/
git commit -m "Generate docs"
git push origin