-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.24 KB
/
tag-and-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
on:
workflow_dispatch:
push:
tags:
- 'v*'
name: tag-and-release
jobs:
build:
runs-on: ubuntu-latest
name: build-and-testing
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.BREW_GITHUB_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
JRELEASER_NEXUS2_USERNAME: ${{ secrets.OSSRH_USERNAME}}
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
JRELEASER_VERSION: 1.17.0
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: install-java11
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
with:
java-version: 11
distribution: temurin
cache: gradle
- name: build-gradle
run: ./gradlew --no-daemon --build-cache --scan -s clean build jreleaserRelease
- name: build-output
if: always()
uses: actions/upload-artifact@v4
with:
name: release-output
path: |
build/reports
build/jreleaser/trace.log
build/jreleaser/output.properties