-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.31 KB
/
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
45
46
47
48
49
50
51
52
name: Release
on:
workflow_dispatch:
inputs:
bump:
description: Release kind
required: true
default: patch
type: choice
options:
- patch
- minor
- major
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- uses: actions/checkout@v4
- name: Get next version
id: version
uses: reecetech/[email protected]
with:
scheme: semver
increment: ${{ inputs.bump }}
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
- name: Build
run: ./gradlew jar --no-daemon
env:
RELEASE_VERSION: ${{ steps.version.outputs.version }}
- name: Package
uses: hydraulic-software/conveyor/actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ steps.version.outputs.version }}
with:
conveyor_version: 13.1
agree_to_license: 1
command: make copied-site
signing_key: ${{ secrets.SIGNING_KEY }}