1
0

init
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
yuudi
2025-08-10 11:04:12 +00:00
commit 728a3db957
20 changed files with 527 additions and 0 deletions

51
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: Build
on:
push: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: Cheatsheet-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
Cheatsheet-${{ runner.os }}-node-
- name: Build Theme
working-directory: themes/hugo-geekdoc
run: |
npm clean-install
npm run build
- name: Build Site
uses: docker://docker.io/hugomods/hugo:base
with:
args: "--minify"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to Github-Pages
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}