forked from laradock/laradock
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.01 KB
/
build-deploy-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
42
43
name: Build Deploy Docs
on:
push:
branches:
- master
paths:
- '.github/workflows/build-deploy-docs.yml'
- 'DOCUMENTATION/**'
permissions: {}
jobs:
build-deploy-docs:
permissions:
contents: write # to push pages branch (peaceiris/actions-gh-pages)
if: github.repository == 'laradock/laradock'
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: ./DOCUMENTATION
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.55.0'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Build Hugo Site
run: hugo --minify
- name: Deploy Hugo Site to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs