Skip to content

Commit

Permalink
Publish ui
Browse files Browse the repository at this point in the history
  • Loading branch information
vogti committed Sep 16, 2024
1 parent b7bf0bc commit 4f3afac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 33 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 packageDistribution
- name: Publish Zip to artifacts.polypheny.com
uses: SamKirkland/[email protected]
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
server: artifacts.polypheny.com
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: publish/
server-dir: /
protocol: ftp
port: 21
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ Thumbs.db
/cypress/screenshots/

/uiLicenseReport.json
/publish/
29 changes: 7 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

plugins {
id "java"
id "maven-publish"
id "com.github.node-gradle.node" version "7.0.1"
}

Expand Down Expand Up @@ -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']
Expand All @@ -71,5 +51,10 @@ clean {
delete "/node_modules"
}

// Add install task
task install(group: 'other', dependsOn: publishToMavenLocal)


tasks.register('packageDistribution', Zip) {
archiveFileName = "polypheny-ui.zip"
destinationDirectory = file('publish')
from file('dist')
}

0 comments on commit 4f3afac

Please sign in to comment.