Change docker setup to reflect the new repository #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Website | |
on: | |
push: | |
branches: | |
- "current-docs" | |
jobs: | |
publish-website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
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 }}) | |
run: nix develop .#ci --command sbt make-website | |
- name: Publish website (${{ env.DOCSPELL_VERSION }}) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: nix develop .#ci --command sbt publish-website |