Skip to content

doc: 可观测性

doc: 可观测性 #86

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master # Set a branch to deploy
pull_request:
jobs:
deploy:
name: "Deploy Capa.io Pages"
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: "Checkout source code"
uses: actions/checkout@v2
with:
submodules: recursive # Fetch the Docsy theme
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: "Setup Hugo"
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.83.0'
extended: true
- name: "Setup Node"
uses: actions/setup-node@v2
with:
node-version: '14'
- name: "Cache dependencies"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: "Install dependencies"
run: npm install
- name: "Build"
run: hugo --minify
- name: "Deploy"
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }} # Deploy in master branch only
with:
github_token: ${{ secrets.GITHUB_TOKEN }}