-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af7c15e
commit 8d3561b
Showing
2 changed files
with
39 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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: 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 |
This file was deleted.
Oops, something went wrong.