Hugo to Github Pages
This commit is contained in:
parent
f3f1842aa5
commit
ce855152e8
2 changed files with 32 additions and 1 deletions
31
.github/workflows/documentation-build.yml
vendored
Normal file
31
.github/workflows/documentation-build.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: github pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master # 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: cd Docs && hugo --minify
|
||||||
|
|
||||||
|
- name: Deploy 🚀
|
||||||
|
uses: JamesIves/github-pages-deploy-action@4.1.6
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
with:
|
||||||
|
branch: gh-pages # The branch the action should deploy to.
|
||||||
|
folder: Docs/docs # The folder the action should deploy.
|
|
@ -7,7 +7,7 @@ If you want to support this project, please consider making a donation:
|
||||||
[![Donate](https://www.mesen.ca/images/donate.png)](https://www.mesen.ca/Donate.php)
|
[![Donate](https://www.mesen.ca/images/donate.png)](https://www.mesen.ca/Donate.php)
|
||||||
|
|
||||||
[Website (https://www.mesen.ca)](https://www.mesen.ca)
|
[Website (https://www.mesen.ca)](https://www.mesen.ca)
|
||||||
[Documentation (https://www.mesen.ca/docs)](https://www.mesen.ca/docs)
|
[Documentation](https://novasquirrel.github.io/Mesen-X/index.html)
|
||||||
|
|
||||||
## Development Builds
|
## Development Builds
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue