forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.24 KB
/
update-doc.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Update documentation"
on:
push:
tags:
- v*
branches: [ "master" ]
paths: [ "docs/*", "hack/hugo/*", ".github/workflows/update-doc.yaml" ]
pull_request:
paths: [ "docs/*", "hack/hugo/*", ".github/workflows/update-doc.yaml" ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
hugo:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Hugo
uses: crazy-max/ghaction-hugo@v3
run:
working-directory: hack/hugo/hugo-test
with:
version: latest
extended: false
args: --cleanDestinationDir --minify -D
-
name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
uses: crazy-max/ghaction-github-pages@v4
run:
working-directory: hack/hugo/hugo-test
with:
target_branch: gh-pages
build_dir: public
#repo: github.com/fredbi/go-swagger.github.io
allow_empty_commit: false
jekyll: false
verbose: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}