-
Notifications
You must be signed in to change notification settings - Fork 20
49 lines (48 loc) · 1.5 KB
/
release.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
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: Release
on:
push:
tags: ["v*"]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: coursier/cache-action@v5
- name: Check/Compile/Test
run: sbt versionCheck check
- name: Release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET_2024 }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE_2024 }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: sbt ci-release
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems
restore-keys: |
${{ runner.os }}-gems
- uses: actions/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install jekyll
run: |
export GEM_HOME=${PWD}/vendor/bundle
gem install jekyll -v 4.0.0
- name: Publish Microsite
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< "${DEPLOY_KEY}"
git config --global user.email "[email protected]"
git config --global user.name "scala-server-toolkit bot"
export PATH="${PWD}/vendor/bundle/bin:$PATH"
export GEM_HOME=${PWD}/vendor/bundle
sbt site/publishMicrosite