Skip to content

feature: add invoke tasks #37

feature: add invoke tasks

feature: add invoke tasks #37

Workflow file for this run

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