-
Notifications
You must be signed in to change notification settings - Fork 106
38 lines (36 loc) · 1.02 KB
/
on-release.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
name: Release tasks
on:
release:
types: [ published ]
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Dependencies for building docs
run: |
npm ci
python -m pip install --upgrade pip
pip install uv
uv pip install -r Browser/dev-requirements.txt --python 3.12 --system
inv build
- name: Build docs
run: |
inv docs
inv gh-pages-index
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs # The folder the action should deploy.