Skip to content

CICD

CICD #174

Workflow file for this run

name: CICD
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 0 4 * * *
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
lfs: true
- uses: pre-commit/[email protected]
if: github.event_name != 'pull_request'
- uses: actions/setup-node@v3
with:
node-version: 19
- run: npm install
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 0.127.0
- name: Build
run: hugo --minify
- name: Deploy
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: jordismit.com