-
Notifications
You must be signed in to change notification settings - Fork 1
24 lines (24 loc) · 879 Bytes
/
release.yml
File metadata and controls
24 lines (24 loc) · 879 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
name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11
# Sometimes compiling the project leads to yarn.lock changes which creates a conflict with the project version
# derived from sbt-git, this version problem causes the release to fail.
# The workaround is to remove the local changes (git stash) and try releasing again.
- run: sbt ci-release || (git stash && sbt ci-release)
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}