-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.04 KB
/
Copy pathbuild.yml
File metadata and controls
43 lines (41 loc) · 1.04 KB
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
---
name: Build
on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch:
jobs:
PyPI:
name: Build the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pdm-project/setup-pdm@main
name: Setup Python and PDM
with:
python-version: 3.9
- name: Build package
run: make build-package
Documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Number of commits to fetch. 0 indicates all history.
# Default: 1
fetch-depth: 0
- uses: pdm-project/setup-pdm@main
name: Setup Python and PDM
with:
python-version: 3.9
- name: Install dependencies
run: make install
- name: Build the Documentation
run: make build-docs
- name: Deploy.
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site