-
Notifications
You must be signed in to change notification settings - Fork 54
37 lines (31 loc) · 989 Bytes
/
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
name: release
on:
workflow_dispatch:
create:
tags:
- '*'
jobs:
release:
if: (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: 'Prepare git'
run: git config --global core.autocrlf false
- name: 'Prepare branch name'
if: (github.event_name == 'create' && github.event.ref_type == 'tag')
run: >
echo "refName=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: 'Checkout relevant branch'
uses: actions/checkout@v4
with:
ref: ${{ env.refName }}
fetch-depth: 0
- name: 'Create release'
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_TOKEN }}
run: ./mvnw -Dfast --no-transfer-progress package jreleaser:full-release