Skip to content

Build and Deploy #14784

Build and Deploy

Build and Deploy #14784

Workflow file for this run

name: Build and Deploy
on:
push:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: |
pip install -r ./requirements.txt
python ./ps.py &
while ! nc -z localhost 5000; do sleep 0.1; done; # Wait for server to start
mkdir output
wget -q -P output -nH --mirror --adjust-extension --page-requisites --no-parent http://127.0.0.1:5000
kill %1 # Kill the python server
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GIT_CONFIG_NAME: pubstandards-london
GIT_CONFIG_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: output