Abstract StartupConfig and shortcut-based autostart #96
Workflow file for this run
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
name: Build | |
on: | |
push: | |
tags: | |
- 'v*' | |
branches: | |
- 'v*' | |
paths: | |
- 'assets/**' | |
- 'core/**' | |
- 'desktop/**' | |
pull_request: | |
tags: | |
- 'v*' | |
branches: | |
- 'v*' | |
paths: | |
- 'assets/**' | |
- 'core/**' | |
- 'desktop/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Check Ref | |
run: | | |
echo "Current ref: ${{ github.ref }}" | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
- name: Setup JavaJDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'liberica' | |
cache: 'gradle' | |
- name: Setup Gradle | |
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@v4 | |
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} | |
with: | |
name: ArkPets.exe | |
path: desktop/build/dist/*.exe | |
- name: Upload Zip | |
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@v4 | |
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} | |
with: | |
name: ArkPets.jar | |
path: desktop/build/dist/*.jar | |
# DUE TO JLINK ISSUES, AUTO RELEASE WAS TEMPORARILY BANNED. | |
# | |
# - name: Publish Release | |
# uses: marvinpinto/action-automatic-releases@latest | |
# if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "${{ github.ref_name }}" | |
# draft: false | |
# prerelease: false | |
# title: "${{ github.ref_name }}" | |
# files: desktop/build/dist/* |