-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- registrations limit - lowercase registrations fix - ability to link account using a command like "!account link <username> <password>"
- Loading branch information
Showing
6 changed files
with
195 additions
and
25 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 |
---|---|---|
@@ -1,40 +1,68 @@ | ||
name: Java CI with Gradle | ||
|
||
on: [ push, pull_request ] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 11, 17 ] | ||
fail-fast: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.4.0 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v2.5.0 | ||
uses: actions/checkout@v3.0.0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3.0.0 | ||
with: | ||
distribution: adopt | ||
java-version: ${{ matrix.java }} | ||
java-version: 11 | ||
- name: Build LimboAuth Social Addon | ||
run: ./gradlew build | ||
- name: Upload LimboAuth Social Addon | ||
uses: actions/upload-artifact@v2.3.1 | ||
uses: actions/upload-artifact@v3.0.0 | ||
with: | ||
name: LimboAuth Social Addon Built On ${{ matrix.java }} JDK | ||
name: LimboAuth Social Addon | ||
path: "build/libs/LimboAuth*.jar" | ||
- uses: dev-drprasad/[email protected] | ||
if: ${{ github.event_name == 'push' }} | ||
with: | ||
delete_release: true | ||
tag_name: dev-build-jdk-${{ matrix.java }} | ||
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/LimboAuth*.jar" | ||
artifacts: build/libs/${{ steps.find-jar.outputs.jarname }} | ||
body: ${{ join(github.event.commits.*.message, '\n') }} | ||
prerelease: true | ||
name: JDK ${{ matrix.java }} Dev-build | ||
tag: dev-build-jdk-${{ matrix.java }} | ||
name: Dev-build ${{ steps.git-version.outputs.id }} | ||
tag: dev-build | ||
- name: Upload to Modrinth | ||
if: ${{ github.event_name == 'push' }} | ||
uses: RubixDev/[email protected] | ||
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: 4iChqdl8:required | ||
game_versions: 1.7.2 | ||
release_type: beta | ||
loaders: velocity | ||
featured: false | ||
project_id: fPyQl4rd |
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,52 @@ | ||
name: Java CI with Gradle | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- name: Build LimboAuth Social Addon | ||
run: ./gradlew build | ||
- name: Upload LimboAuth Social Addon | ||
uses: actions/[email protected] | ||
with: | ||
name: LimboAuth Social Addon | ||
path: "build/libs/LimboAuth*.jar" | ||
- name: Find correct JAR | ||
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: Upload to the GitHub release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: build/libs/${{ steps.find-jar.outputs.jarname }} | ||
asset_name: ${{ steps.find-jar.outputs.jarname }} | ||
asset_content_type: application/java-archive | ||
- name: Upload to Modrinth | ||
uses: RubixDev/[email protected] | ||
with: | ||
token: ${{ secrets.MODRINTH_TOKEN }} | ||
file_path: build/libs/${{ steps.find-jar.outputs.jarname }} | ||
name: Release ${{ github.event.release.tag_name }} | ||
version: ${{ github.event.release.tag_name }} | ||
changelog: ${{ github.event.release.body }} | ||
relations: 4iChqdl8:required | ||
game_versions: 1.7.2 | ||
release_type: release | ||
loaders: velocity | ||
featured: false | ||
project_id: fPyQl4rd |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.8 | ||
1.0.9 |
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
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
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