Merge pull request #2 from Ilwyd/ServerProts #37
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
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/* |