wiki/.github/workflows/build.yml
Neil Hanlon 0a9ced1eef
All checks were successful
mkdocs build / build (push) Successful in 1m17s
chore: init repo, deploy to fastly
2024-08-16 00:20:25 -04:00

42 lines
966 B
YAML

---
name: mkdocs build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker.io/rockylinux:9
steps:
- name: Install deps
run: |
dnf -y upgrade
dnf -y install git python3 python3-pip cairo-devel
- name: checkout
run:
git clone https://git.resf.org/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE
- name: Install python requirements
run: python3 -m pip install -r requirements.txt
- name: Build
run: |
python3 -m mkdocs build
- name: Install fastly CLI
run: |
dnf -y install \
npm \
https://github.com/fastly/cli/releases/download/v10.13.3/fastly_10.13.3_linux_amd64.rpm
- name: Deploy
env:
FASTLY_API_TOKEN: "${{ secrets.FASTLY_API_TOKEN }}"
run: |
pushd compute-js
npm install
fastly compute publish