cstate/.github/workflows/deploy-page.yml
dependabot[bot] 58769ce7e0
Bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 03:07:37 +00:00

41 lines
1.2 KiB
YAML

name: Deploy to Github Pages
on:
push:
# In case we want it to build only on changes on certain files
# paths:
# - "site/**"
# - ".github/workflows/deploy-page.yml"
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Clones the repository. We also want the submodules, thats where the theme lies.
- uses: actions/checkout@v2.4.0
with:
submodules: true
fetch-depth: 0
# Download, and sets up HUGO, ready for use in GHActions
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.5.0
with:
hugo-version: "0.83.1" # Version taken from https://github.com/cstate/cstate/blob/v4.4/exampleSite/.gitlab-ci.yml#L10
extended: true
# Builds the ./public, and minifies CSS/JS
- name: Build
run: hugo --minify
# Takes the result of ./public, and pushes it to the `gh-pages` branch, and include the CNAME file with the content of `info.linuxserver.io`
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public
cname: info.linuxserver.io