Skip to content

Docs Pages

Docs Pages #34

Workflow file for this run

name: Docs Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'site/**'
- 'config.toml'
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install npm dependencies & build
run: |
npm install
npm run dist
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.104.3'
extended: true
- name: Build pages
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
allow_empty_commit: true
cname: fastbootstrap.com