forked from sig_altarch/wiki
42 lines
966 B
YAML
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
|