-
Notifications
You must be signed in to change notification settings - Fork 58
25 lines (25 loc) · 955 Bytes
/
website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Publish Website
on:
push:
branches:
- "current-docs"
jobs:
publish-website:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set current version
run: echo "SHARRY_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24
with:
nix_path: nixpkgs=channel:nixos-21.05
- name: Print nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Build website (${{ env.SHARRY_VERSION }})
run: nix-shell project/microsite.nix --run "sbt microsite/makeMicrosite"
- name: Publish website (${{ env.SHARRY_VERSION }})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix-shell project/microsite.nix --run "sbt microsite/publishMicrosite"