Skip to content

Commit cfa2f6f

Browse files
committed
Create nightly releases
1 parent af7c15e commit cfa2f6f

File tree

2 files changed

+42
-22
lines changed

2 files changed

+42
-22
lines changed

.github/workflows/Build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v3
11+
12+
- name: Setup JDK
13+
uses: actions/setup-java@v3
14+
with:
15+
distribution: temurin
16+
java-version: 17
17+
18+
- name: Setup Gradle
19+
uses: gradle/gradle-build-action@v2
20+
21+
- name: Build with Gradle
22+
run: ./gradlew build
23+
24+
- name: Build Shadow JAR
25+
run: ./gradlew shadowJar
26+
27+
- name: Rename assets to Notify-nightly
28+
if: github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main'
29+
shell: pwsh
30+
run: |
31+
Get-ChildItem -Recurse -Filter "Notify*" -Include "*-all.jar" | ForEach-Object {
32+
Rename-Item $_.FullName -NewName "Notify-nightly$($_.Extension)"
33+
}
34+
35+
- name: Release nightly JAR
36+
if: github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main'
37+
uses: softprops/action-gh-release@v1
38+
with:
39+
name: Nightly release
40+
tag_name: nightly
41+
prerelease: true
42+
files: build/libs/Notify-nightly.jar

.github/workflows/kotlin.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)