-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.25 KB
/
publish-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
name: Publish GitHub Release
on:
push:
tags:
- 'v*'
jobs:
run-scala-ci-release:
uses: ./.github/workflows/standard-workflow.yml
secrets: inherit
publish-maven-artifacts:
needs: [run-scala-ci-release]
if: github.event.base_ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
- run: git fetch --tags
- name: Publish Maven artifacts
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
publish-github-release:
needs: [run-scala-ci-release]
if: github.event.base_ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
# Publishes new Release as new git tag (vX.Y.Z) is pushed to repository
- uses: release-drafter/release-drafter@v6
with:
config-name: publish-release-config.yml
publish: true
tag: ${{ github.ref_name }}
name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}