forked from Klipper3d/klipper
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.05 KB
/
klipper3d-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: klipper3d deploy
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- master
paths:
- docs/**
- .github/workflows/klipper3d-deploy.yaml
workflow_dispatch: # click the button on Github repo!
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- uses: actions/cache@v3
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
- name: Build MkDocs Pages
run: docs/_klipper3d/build-translations.sh
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: site # The folder the action should deploy.