2021-07-22 00:38:53 +02:00
|
|
|
name: klipper3d deploy
|
|
|
|
on:
|
2022-03-19 21:57:56 +01:00
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
2021-07-22 00:38:53 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- docs/**
|
|
|
|
- .github/workflows/klipper3d-deploy.yaml
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.8'
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('docs/_klipper3d/mkdocs-requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -r docs/_klipper3d/mkdocs-requirements.txt
|
2022-03-19 21:57:56 +01:00
|
|
|
- name: Build MkDocs Pages
|
|
|
|
run: docs/_klipper3d/build-translations.sh
|
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.5
|
|
|
|
with:
|
|
|
|
branch: gh-pages # The branch the action should deploy to.
|
|
|
|
folder: site # The folder the action should deploy.
|