docspell/.github/workflows/website.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
698 B
YAML
Raw Normal View History

name: Publish Website
on:
push:
branches:
- "current-docs"
jobs:
publish-website:
2024-03-10 14:50:06 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v27
- 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
- name: Publish website (${{ env.DOCSPELL_VERSION }})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-03-10 14:50:06 +00:00
run: nix develop .#ci --command sbt publish-website