2021-05-31 12:33:49 +00:00
|
|
|
name: Publish Website
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "current-docs"
|
|
|
|
jobs:
|
|
|
|
publish-website:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2023-04-14 10:50:09 +00:00
|
|
|
- uses: actions/checkout@v3.5.2
|
2021-05-31 12:33:49 +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
|
2021-05-31 12:33:49 +00:00
|
|
|
with:
|
|
|
|
elm-version: 0.19.1
|
2023-05-24 16:04:57 +00:00
|
|
|
- uses: cachix/install-nix-action@v21
|
2021-05-31 12:33:49 +00:00
|
|
|
with:
|
2022-02-03 20:46:56 +00:00
|
|
|
nix_path: nixpkgs=channel:nixos-21.11
|
2021-05-31 12:33:49 +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"
|
|
|
|
- name: Publish website (${{ env.DOCSPELL_VERSION }})
|
2021-06-18 22:22:30 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-05-31 12:33:49 +00:00
|
|
|
run: sbt publish-website
|