Skip to content

Commit

Permalink
build: add base project
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisclebs committed Mar 24, 2024
0 parents commit 9e97659
Show file tree
Hide file tree
Showing 82 changed files with 5,032 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: generate github pages to gh-pages branch

on:
push:
branches:
- main # Set a branch to deploy

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./public
cname: whoisclebs.com

Loading

0 comments on commit 9e97659

Please sign in to comment.