Skip to content

Reapply "Merge pull request #3 from Paleocene/refactoring-shutdown-lo… #51

Reapply "Merge pull request #3 from Paleocene/refactoring-shutdown-lo…

Reapply "Merge pull request #3 from Paleocene/refactoring-shutdown-lo… #51

Workflow file for this run

on:
pull_request:
branches: [ main ]
push:
branches:
- main
jobs:
client:
name: Build Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Replace ClientConfig.HOST_ADDRESS with PROD_IP
run: sed -i "s/127.0.0.1/${{ secrets.PROD_IP }}/g" client/src/main/java/ClientConfig.java
- name: Run Gradle build
run: gradle build
- name: Rename jar to 2011Scape-Client.jar
run: mv client/build/libs/client.jar client/build/libs/2011Scape-Client.jar
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: 2011Scape Client
path: |
client/build/libs/*