-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 864 Bytes
/
release.yml
File metadata and controls
37 lines (31 loc) · 864 Bytes
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:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
if: "github.ref == 'refs/tags/${{ steps.get-latest-tag.outputs.tag }}'"
with:
distribution: "temurin"
java-version: 17
cache: 'gradle'
- uses: gradle/gradle-build-action@v2
with:
arguments: build
cache-read-only: true
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GH_TOKEN }}"
prerelease: false
draft: true
files: build/libs/*