-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 991 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
38
39
40
name: Release
on:
workflow_dispatch:
inputs:
prerelease:
description: Whether or not this is a prerelease
type: boolean
default: false
required: true
# push:
# branches:
# - master
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: Release to github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ secrets.M2_USER }}
PASSWORD: ${{ secrets.M2_PASS }}
# just use master
RELEASE_TARGET: master
run: ./gradlew --no-daemon build publish githubRelease -x test