-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 930 Bytes
/
Copy pathrelease.yml
File metadata and controls
42 lines (35 loc) · 930 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
38
39
40
41
42
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
prerelease:
description: Whether this is a prerelease
type: boolean
default: false
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: './'
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Dependencies
run: ./gradlew --no-daemon dependencies
- name: Build and Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TARGET: ${{ github.sha }}
PRERELEASE: "${{ github.event.inputs.prerelease }}"
run: ./gradlew --no-daemon build githubRelease -x test