-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (44 loc) · 1.19 KB
/
Build and Deploy to GitHub Pages.yaml
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
name: Build and Deploy to GitHub Pages
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
workflow_dispatch:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Get Data
uses: actions/checkout@v3
with:
repository: "LeStegii/server-software"
path: "."
ref: "master"
- name: Get Frontend
uses: actions/checkout@v3
with:
repository: "lunofe/mcss-frontend"
path: "mcss-frontend"
ref: "main"
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r mcss-frontend/requirements.txt
- name: Run Python Build Script
run: |
cd mcss-frontend
git log -1 --pretty=%h > commit.txt
cd ..
python3 mcss-frontend/build.py
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: website
folder: mcss-frontend/build