-
-
Notifications
You must be signed in to change notification settings - Fork 66
52 lines (45 loc) · 1.36 KB
/
Copy pathci.yml
File metadata and controls
52 lines (45 loc) · 1.36 KB
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
50
51
52
name: Continuous Integration
on:
pull_request:
branches: ['**', '!update/**']
push:
branches: ['**', '!update/**']
tags: [v*]
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_CREDENTIAL_HOST: ${{ secrets.SONATYPE_CREDENTIAL_HOST }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
site:
name: Generate Site
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.3.4]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- name: Generate site
run: sbt '++${{ matrix.scala }}' build
- name: Publish site
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/develop'
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book/target/creative-scala
keep_files: true