Skip to content

Commit

Permalink
Create nightly releases
Browse files Browse the repository at this point in the history
  • Loading branch information
russellbanks committed May 16, 2023
1 parent af7c15e commit cfa2f6f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 22 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build with Gradle
run: ./gradlew build

- name: Build Shadow JAR
run: ./gradlew shadowJar

- name: Rename assets to Notify-nightly
if: github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main'
shell: pwsh
run: |
Get-ChildItem -Recurse -Filter "Notify*" -Include "*-all.jar" | ForEach-Object {
Rename-Item $_.FullName -NewName "Notify-nightly$($_.Extension)"
}
- name: Release nightly JAR
if: github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v1
with:
name: Nightly release
tag_name: nightly
prerelease: true
files: build/libs/Notify-nightly.jar
22 changes: 0 additions & 22 deletions .github/workflows/kotlin.yml

This file was deleted.

0 comments on commit cfa2f6f

Please sign in to comment.