Skip to content

Prepare object storage api and implement better permission flow #4279

Prepare object storage api and implement better permission flow

Prepare object storage api and implement better permission flow #4279

Workflow file for this run

name: Java CI with Gradle
on: [ push, pull_request ]
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Execute Gradle build
run: ./gradlew build test --stacktrace
- name: Prepare Upload
run: |
projectVersion=$(grep '^maven_version=' gradle.properties | cut -d'=' -f2)
mkdir client/build/upload
cp client/build/libs/SoulFireCLI-$projectVersion.jar client/build/upload
mkdir dedicated/build/upload
cp dedicated/build/libs/SoulFireDedicated-$projectVersion.jar dedicated/build/upload
- name: Upload client Build Artifact
uses: actions/upload-artifact@v4
with:
name: SoulFireCLI
if-no-files-found: error
path: |
client/build/upload/*.jar
- name: Upload dedicated Build Artifact
uses: actions/upload-artifact@v4
with:
name: SoulFireDedicated
if-no-files-found: error
path: |
dedicated/build/upload/*.jar