-
-
Notifications
You must be signed in to change notification settings - Fork 570
44 lines (37 loc) · 971 Bytes
/
microsite.yml
File metadata and controls
44 lines (37 loc) · 971 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Microsite
on:
pull_request:
branches: [docs]
push:
branches: [docs]
jobs:
build:
name: Generate Microsite
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (fast)
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: 'website/package-lock.json'
- name: Build
run: ./build.sh
- name: Publish
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build/cats-effect
publish_branch: gh-pages