Run Windows Build (msi, jar) #9
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 Windows Build (msi, 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: windows-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: "./gradlew.bat publishJvmPublicationToMavenLocal" | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Build Msi" | |
env: | |
JAVA_HOME: ${{ steps.setup-java.outputs.path }} | |
run: ./gradlew.bat packageReleaseMsi | |
- name: "Build Uber jar" | |
env: | |
JAVA_HOME: ${{ steps.setup-java.outputs.path }} | |
run: ./gradlew.bat packageReleaseUberJarForCurrentOS | |
- name: "Upload binaries to FTP" | |
uses: "SamKirkland/FTP-Deploy-Action@v4.3.4" | |
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 }}/win/binaries/" | |
- name: "Upload jars to FTP" | |
uses: "SamKirkland/FTP-Deploy-Action@v4.3.4" | |
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 }}/win/jars/" |