-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.29 KB
/
release.yml
File metadata and controls
55 lines (45 loc) · 1.29 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
53
54
55
name: Release
on:
push:
tags:
- 'v*'
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
release:
if: github.repository == 'gatling/gatling-shared-cli'
runs-on: ubuntu-latest
timeout-minutes: 60
env:
JAVA_OPTS: "-Xmx6G"
SBT_OPTS: "-Dsbt.ci=true -Xss100M"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '25'
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Prepare environment
env:
SONATYPE_SBT: ${{ secrets.SONATYPE_SBT }}
SONATYPE_PGP_SECRET: ${{ secrets.SONATYPE_PGP_SECRET }}
run: |
mkdir --parents ~/.sbt/1.0 || true
echo "$SONATYPE_SBT" > ~/.sbt/1.0/sonatype.sbt
echo -n "$SONATYPE_PGP_SECRET" | base64 --decode | gpg --batch --import
# - name: Cache
# No cache for release! We want clean and full release!
- name: Release
id: release
env:
PGP_PASSPHRASE: ${{ secrets.SONATYPE_PGP_PASSPHRASE }}
run: sbt "release with-defaults"
- name: Message
run: echo "Do NOT forget to release the staging repository on https://s01.oss.sonatype.org/"