-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (44 loc) · 1.18 KB
/
main.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
name: main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build Package
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install doxygen
- name: Generate Documentation
run: |
source utilities/build_docs.sh
- name: Run Unit Tests
run: |
source utilities/build_test.sh
- name: Create Distribution
run: |
mkdir distribution
cp README.md distribution
cp -R documents/html distribution
rm -rf source/gltf_materialx_converter/__pycache__
cp -R source/gltf_materialx_converter distribution
rm -rf tests/__pycache__
cp -R tests distribution
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
name: distribution
path: distribution