Skip to content

Add comprehensive README with blog workflow documentation #27

Add comprehensive README with blog workflow documentation

Add comprehensive README with blog workflow documentation #27

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- source # Trigger on changes to the source branch
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
ref: source # Check out the source branch
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Build site
run: hugo --minify
- name: Create .nojekyll file
run: touch ./public/.nojekyll
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./public
publish_branch: main # Deploy built files to main branch
allow_deploy_from_same_branch: true