Skip to content

Commit 4f3afac

Browse files
committed
Publish ui
1 parent b7bf0bc commit 4f3afac

File tree

3 files changed

+18
-33
lines changed

3 files changed

+18
-33
lines changed

.github/workflows/publish.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ jobs:
1818
distribution: 'temurin'
1919
java-version: 17
2020
- name: Build with Gradle
21-
run: ./gradlew --no-daemon build generatePom
22-
- name: Publish JAR to DBIS Nexus
23-
uses: sonatype-nexus-community/nexus-repo-github-action@master
21+
run: ./gradlew --no-daemon build packageDistribution
22+
- name: Publish Zip to artifacts.polypheny.com
23+
uses: SamKirkland/[email protected]
2424
with:
25-
serverUrl: https://dbis-nexus.dmi.unibas.ch/
26-
username: ${{ secrets.DBIS_NEXUS_USERNAME }}
27-
password: ${{ secrets.DBIS_NEXUS_PASSWORD }}
28-
format: maven2
29-
repository: maven-snapshots
30-
coordinates: groupId=org.polypheny artifactId=polypheny-ui version=2.0-SNAPSHOT
31-
assets: extension=jar
32-
filename: ./build/libs/polypheny-ui-2.0-SNAPSHOT.jar
25+
server: artifacts.polypheny.com
26+
username: ${{ secrets.FTP_USERNAME }}
27+
password: ${{ secrets.FTP_PASSWORD }}
28+
local-dir: publish/
29+
server-dir: /
30+
protocol: ftp
31+
port: 21

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ Thumbs.db
5858
/cypress/screenshots/
5959

6060
/uiLicenseReport.json
61+
/publish/

build.gradle

+7-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
plugins {
33
id "java"
4-
id "maven-publish"
54
id "com.github.node-gradle.node" version "7.0.1"
65
}
76

@@ -38,25 +37,6 @@ jar {
3837
}
3938
}
4039

41-
42-
publishing {
43-
publications {
44-
"${project.name}"(MavenPublication) {
45-
from components.java
46-
pom {
47-
licenses {
48-
license {
49-
name = 'Apache License, Version 2.0'
50-
url = 'http://www.apache.org/licenses/LICENSE-2.0'
51-
}
52-
}
53-
}
54-
}
55-
}
56-
}
57-
task generatePom(group: 'publishing', dependsOn: "generatePomFileFor${project.name.capitalize()}Publication")
58-
59-
6040
task licenseReport(type: NpxTask) {
6141
command = 'license-checker-rseidelsohn'
6242
args = ['--json', '--production', '--files', 'build/reports/licenses/files', '--out', 'build/reports/licenses/licenseReport.json']
@@ -71,5 +51,10 @@ clean {
7151
delete "/node_modules"
7252
}
7353

74-
// Add install task
75-
task install(group: 'other', dependsOn: publishToMavenLocal)
54+
55+
56+
tasks.register('packageDistribution', Zip) {
57+
archiveFileName = "polypheny-ui.zip"
58+
destinationDirectory = file('publish')
59+
from file('dist')
60+
}

0 commit comments

Comments
 (0)