-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 942 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: Build & Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9a-zA-Z]+"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: build publish
env:
NOXCREW_MAVEN_PUBLIC_USERNAME: ${{ secrets.NOXCREW_MAVEN_PUBLIC_USERNAME }}
NOXCREW_MAVEN_PUBLIC_PASSWORD: ${{ secrets.NOXCREW_MAVEN_PUBLIC_PASSWORD }}
- name: Create Draft Release
uses: softprops/action-gh-release@v1
with:
files: api/build/libs/sheeplib-+([0-9]).+([0-9]).+([0-9a-zA-Z])?(-SNAPSHOT).jar
draft: true