This commit is contained in:
Simon Gardling
2023-10-11 17:38:05 -04:00
commit 032679b34a
242 changed files with 9311 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
token: ${{ secrets.ACCESS_TOKEN }}
ssh-key: ${{ secrets.SSH_PRIVATE }}
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.115.4'
extended: true
- name: Setup public
run: git worktree add -B gh-pages ./exampleSite/public origin/gh-pages
- name: Clean public
run: rm -rf ./exampleSite/public/*
- name: Build
run: hugo -s exampleSite --baseURL https://kaiiiz.github.io/hugo-theme-monochrome --themesDir=../.. --minify --environment production
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
deploy_key: ${{ secrets.SSH_PRIVATE }}
publish_dir: ./exampleSite/public
publish_branch: gh-pages

View File

@@ -0,0 +1,22 @@
name: github pages
on:
push:
tags:
- "v*.*.*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
token: ${{ secrets.ACCESS_TOKEN }}
ssh-key: ${{ secrets.SSH_PRIVATE }}
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Create Release
uses: ncipollo/release-action@v1
with:
draft: true