generated from Southampton-RSG-Training/lesson-template
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.12 KB
/
website.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
name: Website
on:
push:
branches:
- "main"
pull_request: null
jobs:
build-setup:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout the lesson
uses: actions/checkout@v2
- name: Setup Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8.16"
- name: Install Python modules
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r requirements.txt
- name: Install sys deps
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Run build scripts
run: |
bash bin/build_me.sh
- name: Deploy the website to gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: "."
token: ${{ secrets.GITHUB_TOKEN }}