From ce855152e8df1878acfbb0c0a668e4f269704119 Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Thu, 25 Nov 2021 23:09:02 +0100 Subject: [PATCH] Hugo to Github Pages --- .github/workflows/documentation-build.yml | 31 +++++++++++++++++++++++ README.md | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/documentation-build.yml diff --git a/.github/workflows/documentation-build.yml b/.github/workflows/documentation-build.yml new file mode 100644 index 00000000..8304619d --- /dev/null +++ b/.github/workflows/documentation-build.yml @@ -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. diff --git a/README.md b/README.md index 3685d736..7f5c3e88 100644 --- a/README.md +++ b/README.md @@ -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) [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