Skip to content

Commit

Permalink
ci(build): Update action version from v3 to v4
Browse files Browse the repository at this point in the history
* Update action version
* Remove useless function `exit` in ArkHomeFX.java
  • Loading branch information
half-nothing committed Apr 26, 2024
1 parent 5117eca commit fd880ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,39 @@ jobs:
echo "Current ref: ${{ github.ref }}"
- name: Clone Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup JavaJDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'liberica'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.1.1

- name: Execute Gradle Tasks
run: gradle clean distAll

- name: Upload Exe
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: ArkPets.exe
path: desktop/build/dist/*.exe

- name: Upload Zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: ArkPets.zip
path: desktop/build/dist/*.zip

- name: Upload Jar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: ArkPets.jar
Expand Down
4 changes: 0 additions & 4 deletions desktop/src/cn/harryh/arkpets/ArkHomeFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ public void stop() {
Logger.debug("Launcher", "Finished stopping");
}

public void exit() {
rootModule.exit();
}

public void popLoading(EventHandler<ActionEvent> handler) {
rootModule.popLoading(handler);
}
Expand Down

0 comments on commit fd880ee

Please sign in to comment.