Transition off of GitHub pages

main
Elnu 1 year ago
parent fa4b7186e2
commit f5e4f8a4bd

@ -1,37 +0,0 @@
name: GitHub Pages
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
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: Stork Index
run: ./stork_index.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

1
.gitignore vendored

@ -4,3 +4,4 @@
hugo_stats.json
/.hugo_build.lock
*.xcf
stork-ubuntu-20-04-1.5.0

2
.gitmodules vendored

@ -1,3 +1,3 @@
[submodule "themes/sakura-hugo-theme"]
path = themes/sakura-hugo-theme
url = git@github.com:ElnuDev/sakura-hugo-theme.git
url = https://git.elnu.com/ElnuDev/sakura-hugo-theme.git

@ -0,0 +1,4 @@
#!/bin/bash
hugo
./stork_index.sh
find public -name '*.html' -type f -exec tidy --quiet yes --drop-empty-elements no --hide-comments yes -mq '{}' \; &> /dev/null

@ -1 +0,0 @@
blog.elnu.com
Loading…
Cancel
Save