From 6e916e03ed9d58265e8082326f1255630ed088c9 Mon Sep 17 00:00:00 2001 From: Marco Vogt Date: Mon, 16 Sep 2024 12:33:43 +0200 Subject: [PATCH] Publish ui --- .github/workflows/publish.yml | 21 ++++++++++----------- .gitignore | 1 + build.gradle | 32 +++++++++++--------------------- 3 files changed, 22 insertions(+), 32 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cf2dfe15..549f37b4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,15 +18,14 @@ jobs: distribution: 'temurin' java-version: 17 - name: Build with Gradle - run: ./gradlew --no-daemon build generatePom - - name: Publish JAR to DBIS Nexus - uses: sonatype-nexus-community/nexus-repo-github-action@master + run: ./gradlew --no-daemon build + - name: Publish Zip to artifacts.polypheny.com + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: - serverUrl: https://dbis-nexus.dmi.unibas.ch/ - username: ${{ secrets.DBIS_NEXUS_USERNAME }} - password: ${{ secrets.DBIS_NEXUS_PASSWORD }} - format: maven2 - repository: maven-snapshots - coordinates: groupId=org.polypheny artifactId=polypheny-ui version=2.0-SNAPSHOT - assets: extension=jar - filename: ./build/libs/polypheny-ui-2.0-SNAPSHOT.jar \ No newline at end of file + server: artifacts.polypheny.com + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: publish/ + server-dir: / + protocol: ftp + port: 21 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9d2085b6..2f2039e5 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ Thumbs.db /cypress/screenshots/ /uiLicenseReport.json +/publish/ \ No newline at end of file diff --git a/build.gradle b/build.gradle index 15b37a9d..3d661666 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,6 @@ plugins { id "java" - id "maven-publish" id "com.github.node-gradle.node" version "7.0.1" } @@ -38,25 +37,6 @@ jar { } } - -publishing { - publications { - "${project.name}"(MavenPublication) { - from components.java - pom { - licenses { - license { - name = 'Apache License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0' - } - } - } - } - } -} -task generatePom(group: 'publishing', dependsOn: "generatePomFileFor${project.name.capitalize()}Publication") - - task licenseReport(type: NpxTask) { command = 'license-checker-rseidelsohn' args = ['--json', '--production', '--files', 'build/reports/licenses/files', '--out', 'build/reports/licenses/licenseReport.json'] @@ -71,5 +51,15 @@ clean { delete "/node_modules" } + + +tasks.register('packageDistribution', Zip) { + archiveFileName = "polypheny-ui.zip" + destinationDirectory = file('publish') + from file('dist') +} + + + // Add install task -task install(group: 'other', dependsOn: publishToMavenLocal) +task install(group: 'other', dependsOn: publishToDotPolypheny)