Files
doc-status/.github/workflows/ci.yml
dependabot[bot] 6925d6558d Bump actions/checkout from 2 to 3 (#17)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 18:40:00 +01:00

37 lines
1.1 KiB
YAML

name: Continuous integration
on:
push:
schedule:
# Every day at midnight (UTC).
# This keeps the class reference status page fresh.
- cron: '0 0 * * *'
jobs:
deploy:
name: Build and deploy to GitHub Pages
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate class reference table and build website
env:
HUGO_VERSION: '0.89.2'
run: |
curl -LO "https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz"
tar xf "hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" hugo
sudo mv hugo /usr/local/bin/
./build.sh
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The branch the action should deploy to.
BRANCH: gh-pages
# The folder the action should deploy.
FOLDER: public
# Artifacts are large, don't keep the branch's history
SINGLE_COMMIT: true