2022-02-03 22:01:40 +00:00
|
|
|
name: Check Website
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "current-docs"
|
|
|
|
- "master"
|
|
|
|
jobs:
|
|
|
|
check-website:
|
2023-08-09 13:32:37 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-03 22:01:40 +00:00
|
|
|
steps:
|
2023-10-17 16:56:59 +00:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2022-02-03 22:01:40 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Set current version
|
|
|
|
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
|
2023-03-09 11:01:14 +00:00
|
|
|
- uses: jorelali/setup-elm@v5
|
2022-02-03 22:01:40 +00:00
|
|
|
with:
|
|
|
|
elm-version: 0.19.1
|
2024-01-12 18:36:51 +00:00
|
|
|
- uses: cachix/install-nix-action@v25
|
2022-02-03 22:01:40 +00:00
|
|
|
with:
|
2023-11-13 16:36:02 +00:00
|
|
|
nix_path: nixpkgs=channel:nixos-23.05
|
2022-02-03 22:01:40 +00:00
|
|
|
- name: Print nixpkgs version
|
|
|
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
|
|
|
- name: Build website (${{ env.DOCSPELL_VERSION }})
|
|
|
|
run: nix-shell website/shell.nix --run "sbt make-website"
|