-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.09 KB
/
build_page.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
name: Build + Deploy my own page with own generator
on:
push:
branches: ["master"]
env:
PYTHON_VERSION: '3.12' # set this to the python version to use (e.g. '3.6', '3.7', '3.8')
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 'Resolve Project Dependencies Using Pip'
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 'Build page'
shell: bash
run: |
python scripts/page_gen/gen_page.py
- name: 'Setup Pages'
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './generated/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4