2022-02-03 22:01:40 +00:00
|
|
|
name: Check Website
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "current-docs"
|
|
|
|
- "master"
|
|
|
|
jobs:
|
|
|
|
check-website:
|
2024-03-10 14:50:06 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-02-03 22:01:40 +00:00
|
|
|
steps:
|
2024-04-25 13:30:40 +00:00
|
|
|
- uses: actions/checkout@v4.1.4
|
2022-02-03 22:01:40 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-03-10 14:50:06 +00:00
|
|
|
- uses: cachix/install-nix-action@v26
|
2022-02-03 22:01:40 +00:00
|
|
|
- name: Set current version
|
|
|
|
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
|
|
|
|
- name: Build website (${{ env.DOCSPELL_VERSION }})
|
2024-03-10 14:50:06 +00:00
|
|
|
run: nix develop .#ci --command sbt make-website
|