mirror of
https://github.com/tiennm99/iammiti99.git
synced 2026-05-14 06:58:51 +00:00
37dbf84c14
Replace the custom Node.js builder with Hugo and the bonsai theme (added as a submodule at themes/bonsai). Site content moves from config.yaml into [params] in hugo.toml. CI switched to Hugo Extended 0.154.0 build; daily cron dropped (no API decoration to refresh). Avatar imported from miti99 project.
53 lines
1005 B
YAML
53 lines
1005 B
YAML
name: Deploy to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 0
|
|
|
|
- id: pages
|
|
uses: actions/configure-pages@v5
|
|
with:
|
|
enablement: true
|
|
|
|
- name: Setup Hugo Extended
|
|
uses: peaceiris/actions-hugo@v3
|
|
with:
|
|
hugo-version: '0.154.0'
|
|
extended: true
|
|
|
|
- name: Build
|
|
run: hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
|
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: public
|
|
|
|
deploy:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deploy.outputs.page_url }}
|
|
steps:
|
|
- id: deploy
|
|
uses: actions/deploy-pages@v4
|