Skip to content

Commit 8244bf2

Browse files
committed
Add workflow to release from within the CI
Anyone with write access to the repository can cut a release.
1 parent 7b80941 commit 8244bf2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ame: Release
2+
on: workflow_dispatch
3+
4+
jobs:
5+
release:
6+
name: Release
7+
runs-on: ubuntu-latest
8+
env:
9+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
10+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
11+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-java@v3
15+
with:
16+
distribution: temurin
17+
java-version: 8.0.372+7
18+
cache: sbt
19+
gpg-private-key: ${{ secrets.PGP_SECRET }}
20+
gpg-passphrase: PGP_PASSPHRASE
21+
- run: git config user.email "[email protected]"
22+
- run: git config user.name "sbt release bot"
23+
- name: Push tag
24+
run: sbt release with-defaults

0 commit comments

Comments
 (0)