Skip to content

Build All

Build All #14103

Workflow file for this run

name: Build All
on:
schedule:
# Every 15 minutes
- cron: '*/15 * * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: shadowJar --no-daemon --console=plain
- name: Build jars
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_REGION: ${{ secrets.S3_REGION }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
STORAGE_TYPE: S3
SERVERJARS_FOLDER: serverjars
NO_INPUT: true
run: |
java -jar build/libs/ServerJarsBuilder.jar -a -e "servers/spigot;servers/bukkit"