Skip to content

CI

CI #15

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
extended: true
- name: Build
# remove --minify if you do not need it
run: hugo
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
# prefer the built-in token to avoid storing a personal token
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: site
user_name: Freakston
user_email: kssuraj15@gmail.com