docspell/.github/workflows/website.yml

25 lines
787 B
YAML
Raw Normal View History

name: Publish Website
on:
push:
branches:
- "current-docs"
jobs:
publish-website:
2023-08-09 13:32:37 +00:00
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
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
with:
elm-version: 0.19.1
- uses: cachix/install-nix-action@v26
- name: Build website (${{ env.DOCSPELL_VERSION }})
2024-03-10 14:36:40 +00:00
run: nix develop .#dev-cnt --command sbt make-website
- name: Publish website (${{ env.DOCSPELL_VERSION }})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-03-10 14:36:40 +00:00
run: nix develop .#dev-cnt --command sbt publish-website