Skip to content

Updated continuous integration #10

Updated continuous integration

Updated continuous integration #10

Workflow file for this run

name: 🏗️ Build and Deploy GitHub Pages
on:
push:
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: 🔄 Check Out Source Repository
uses: actions/[email protected]
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: 🛠️ Initialize Hugo Environment
uses: peaceiris/[email protected]
with:
hugo-version: "0.121.1"
extended: true
- name: 🏗️ Compile Hugo Static Files
run: hugo -D --gc --minify
- name: 🔐 Secure Content with Encryption
run: curl -L -o hugo-encrypt "https://github.com/Izumiko/hugo-encrypt/releases/download/v0.1.0/hugo-encrypt-linux-64" && chmod 755 hugo-encrypt && ./hugo-encrypt
- name: 🚀 Publish to GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
## NOTE: uncomment below if using a custom domain
## cname: mydomain.com