Skip to content

Commit

Permalink
Rewrite build script (#5091)
Browse files Browse the repository at this point in the history
  • Loading branch information
RacoonDog authored Jan 8, 2025
1 parent 2a853b2 commit 401d3b0
Show file tree
Hide file tree
Showing 12 changed files with 279 additions and 219 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- run: chmod +x gradlew

- name: Set up Node JS
uses: actions/setup-node@v3
with:
Expand All @@ -45,7 +51,6 @@ jobs:
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}


- name: Publish
run: ./gradlew publish -Pcommit=${{ github.sha }} -Pdevbuild=${{ steps.dev-build.outputs.number }}
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/issue-moderator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
issue-moderator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Automatically close issues that don't follow the issue template
uses: lucasbento/[email protected]
with:
Expand All @@ -20,4 +24,3 @@ jobs:
@${issue.user.login}: hello! :wave:
This issue is being automatically closed because it does not follow the issue template."
closed-issues-label: "invalid"

14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- run: chmod +x gradlew

- name: Publish
run: ./gradlew publish
16 changes: 11 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- run: chmod +x gradlew

- name: Build
run: ./gradlew build

- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pull-request-build
path: build/libs/
180 changes: 0 additions & 180 deletions build.gradle

This file was deleted.

Loading

0 comments on commit 401d3b0

Please sign in to comment.