-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.14 KB
/
build.yaml
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
45
46
47
48
49
name: build
on:
push:
branches:
- master
permissions:
contents: read
id-token: write
packages: write
pages: write
env:
REGISTRY: ghcr.io
IMG_NAME: ${{github.repository}}
jobs:
Prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v2
with:
registry: ${{env.REGISTRY}}
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/metadata-action@v4
with:
images: ${{env.REGISTRY}}/${{env.IMG_NAME}}
id: meta
- uses: docker/build-push-action@v3
with:
push: true
tags: ${{steps.meta.outputs.tags}}
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- run: sbt doc
- uses: actions/configure-pages@v2
- uses: actions/jekyll-build-pages@v1
with:
source: ./target/scala-2.13
- uses: actions/upload-pages-artifact@v1
Publish:
needs: Prepare
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- uses: actions/deploy-pages@v1