-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.12 KB
/
docs.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
37
38
39
40
41
name: Create docs
on:
push:
branches:
- main
paths:
- "src/**"
- ".github/workflows/docs.yaml"
- "README.md"
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python Dependencies 📦
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements.txt
- name: Build 🔧
run: |
./docs.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: 'docs/'
commit-message: "Docs: ${{ github.sha }}" # The commit message for the deployment.