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