mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
20 lines
612 B
YAML
20 lines
612 B
YAML
name: docs-build
|
|
|
|
on:
|
|
push: # Build on all pushes but only deploy for main branch
|
|
pull_request: # Build on all PRs regardless what branch
|
|
workflow_dispatch: # Allow this task to be manually started (you'll never know)
|
|
|
|
jobs:
|
|
ci:
|
|
name: Run build
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name != 'push' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
- name: Build site
|
|
uses: ./.github/actions/build_site
|