Github actions use nix

This commit is contained in:
eikek
2024-03-10 15:50:06 +01:00
parent 3aad3b7be4
commit 8a41ed3fd3
7 changed files with 32 additions and 76 deletions

View File

@ -6,16 +6,13 @@ on:
- "master"
jobs:
check-website:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v26
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- uses: cachix/install-nix-action@v26
- name: Build website (${{ env.DOCSPELL_VERSION }})
run: nix develop .#dev-cnt --command sbt make-website
run: nix develop .#ci --command sbt make-website