-
Notifications
You must be signed in to change notification settings - Fork 83
42 lines (36 loc) · 1.29 KB
/
publish.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
name: Publish
on:
workflow_dispatch:
permissions:
contents: read
jobs:
sbt:
name: sbt publish
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
- name: Publish
run: |-
cp .jvmopts-ci .jvmopts
export SourceBranchName=`echo "$GITHUB_REF" | cut -b 12-` # cuts the first 12 characters, namely "refs/heads/"
echo "Will build on branch $SourceBranchName."
git checkout "$SourceBranchName"
git config --global user.email "[email protected]"
git config --global user.name "baker release pipeline"
git remote set-url origin "https://github.com/ing-bank/baker"
sbt "release cross with-defaults"
env:
# PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
# PGP_SECRET: ${{ secrets.PGP_SECRET }}
USERNAME: ${{ secrets.PUBLISH_USERNAME }}
PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}