forked from Auto-Mech/autochem
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 780 Bytes
/
docs.yaml
File metadata and controls
39 lines (32 loc) · 780 Bytes
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
37
38
39
name: docs
on:
push:
pull_request:
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# Repository
- name: Checkout the code
uses: actions/checkout@v4
# Environment
- name: Set up Pixi
uses: prefix-dev/setup-pixi@v0.8.9
# Docs
- name: Build docs
run: |
pixi run -e docs build-docs
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/dev'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html