forked from Elytrium/LimboAuth
-
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
1dbca38
commit 0aa38fd
Showing
1 changed file
with
12 additions
and
50 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 |
---|---|---|
|
@@ -4,65 +4,27 @@ on: | |
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.0.0 | ||
uses: actions/checkout@main | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3.0.0 | ||
uses: actions/setup-java@main | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: Build LimboAuth | ||
run: ./gradlew build | ||
|
||
- name: Upload LimboAuth | ||
uses: actions/[email protected] | ||
with: | ||
name: LimboAuth | ||
path: "build/libs/limboauth*.jar" | ||
- uses: dev-drprasad/[email protected] | ||
if: ${{ github.event_name == 'push' }} | ||
with: | ||
delete_release: true | ||
tag_name: dev-build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Find git version | ||
id: git-version | ||
run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
- name: Find correct JAR | ||
if: ${{ github.event_name == 'push' }} | ||
id: find-jar | ||
run: | | ||
output="$(find build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")" | ||
echo "::set-output name=jarname::$output" | ||
- name: Release the build | ||
if: ${{ github.event_name == 'push' }} | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: build/libs/${{ steps.find-jar.outputs.jarname }} | ||
body: ${{ join(github.event.commits.*.message, '\n') }} | ||
prerelease: true | ||
name: Dev-build ${{ steps.git-version.outputs.id }} | ||
tag: dev-build | ||
- name: Upload to Modrinth | ||
if: ${{ github.event_name == 'push' }} | ||
uses: RubixDev/[email protected] | ||
uses: marvinpinto/action-automatic-releases@master | ||
with: | ||
token: ${{ secrets.MODRINTH_TOKEN }} | ||
file_path: build/libs/${{ steps.find-jar.outputs.jarname }} | ||
name: Dev-build ${{ steps.git-version.outputs.id }} | ||
version: ${{ steps.git-version.outputs.id }} | ||
changelog: ${{ join(github.event.commits.*.message, '\n') }} | ||
relations: TZOteSf2:required | ||
game_versions: 1.7.2 | ||
release_type: beta | ||
loaders: velocity | ||
featured: false | ||
project_id: 4iChqdl8 | ||
title: "LimboAuth" | ||
automatic_release_tag: "la" | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
files: "*/build/libs/*.jar" | ||
prerelease: false |