Run Linux Build (deb, rpm, jar) #14
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: "Run Linux Build (deb, rpm, jar)" | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "Mostly just the version folder it will be uploaded to." | |
required: true | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
STYX_BASEURL: ${{ secrets.STYX_BASEURL }} | |
STYX_IMAGEURL: ${{ secrets.STYX_IMAGEURL }} | |
STYX_SITEURL: ${{ secrets.STYX_SITEURL }} | |
STYX_APP_GUID: ${{ secrets.STYX_APP_GUID }} | |
STYX_SECRET: ${{ secrets.STYX_SECRET }} | |
steps: | |
- name: "Checkout Styx-Common" | |
uses: actions/checkout@v4 | |
with: | |
repository: "Vodes/Styx-Common" | |
- name: "Setup JDK" | |
id: java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: | | |
11 | |
17 | |
cache: "gradle" | |
- name: "Build Styx-Common" | |
env: | |
JAVA_HOME: ${{ steps.setup-java.outputs.path }} | |
run: | | |
chmod u+x ./gradlew | |
./gradlew publishToMavenLocal | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Build RPM & DEB" | |
env: | |
JAVA_HOME: ${{ steps.setup-java.outputs.path }} | |
run: | | |
chmod u+x ./gradlew | |
./gradlew packageReleaseDeb packageReleaseRpm | |
- name: "Build Uber jar" | |
env: | |
JAVA_HOME: ${{ steps.setup-java.outputs.path }} | |
run: "./gradlew packageReleaseUberJarForCurrentOS" | |
- name: "Upload binaries to FTP" | |
uses: "SamKirkland/[email protected]" | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USER }} | |
password: ${{ secrets.FTP_PASS }} | |
protocol: ftps | |
security: loose | |
local-dir: "./build/compose/binaries/main-release/" | |
server-dir: "/${{ inputs.version }}/linux/binaries/" | |
- name: "Upload jars to FTP" | |
uses: "SamKirkland/[email protected]" | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USER }} | |
password: ${{ secrets.FTP_PASS }} | |
protocol: ftps | |
security: loose | |
local-dir: "./build/compose/jars/" | |
server-dir: "/${{ inputs.version }}/linux/jars/" |