-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.12 KB
/
deploy.yml
File metadata and controls
45 lines (36 loc) · 1.12 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
44
45
name: Build and Deploy HTML
on:
push:
branches:
- main # Triggered whenever you push to the main branch
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install System Graphviz
run: |
sudo apt-get update
sudo apt-get install -y graphviz
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Generate HTML
run: |
python estrutura.py
python generate_site.py
python webapps.py
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs # The folder where your generated HTML is located
publish_branch: gh-pages # The automated branch for the website