-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.4 KB
/
github-actions.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
pages:
runs-on: ubuntu-latest
environment:
name: Development
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y python3-pip python3-venv
npm install @semantic-release/[email protected]
npm install @semantic-release/[email protected]
npm install @semantic-release/[email protected]
npm install @semantic-release/[email protected]
- name: Make release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release --debug
- name: Create documentation
run: |
python3 -m venv venv
source venv/bin/activate
pip install .
cd docs && make html && cd ..
mkdir public
mv docs/build/html/* public/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4