forked from murbard/pytezos
-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (41 loc) · 1.02 KB
/
docs.yml
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
40
41
42
43
44
45
46
47
48
name: Docs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
tags:
- "*.*.*"
branches:
- "**"
paths:
- "docs/**"
- "scripts/**"
- ".github/workflows/docs.yml"
jobs:
docs:
name: Docs
runs-on: ubuntu-22.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
# FIXME:
# cache: 'poetry'
- name: Install binary dependencies
run: OSTYPE=$OSTYPE make install-deps
- name: Install project
run: make install
- name: Make docs
run: poetry run make docs
- name: Deploy to GH Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html