Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/build_website/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build the website
description: Build the website

runs:
using: "composite"
steps:
- name: Install the tutorial_web binary
shell: bash
run: /usr/bin/env python3 install.py linux

- name: Build
shell: bash
run: ./bin/tutorial_web build -i courses -s ./bin/static -o build -b /tutorial_web_content
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Builds the website (doesn't deploy - only used for checking syntax)
name: Build the website (doesn't deploy - only used for checking syntax)

on:
push
on: [push, pull_request]

jobs:
build-deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install the tutorial_web binary
run: /usr/bin/env python3 install.py linux
# Build the website
- name: Build
run: ./bin/tutorial_web build -i courses -s ./bin/static -o build -b /tutorial_web_content
- name: Checkout
uses: actions/checkout@master

- name: Build
uses: ./.github/actions/build_website
22 changes: 11 additions & 11 deletions .github/workflows/github_pages_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install the tutorial_web binary
run: /usr/bin/env python3 install.py linux
# Build the website
- name: Build
run: ./bin/tutorial_web build -i courses -s ./bin/static -o build -b /tutorial_web_content
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: build
- name: Checkout
uses: actions/checkout@master

- name: Build
uses: ./.github/actions/build_website

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: build