Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
UnifiedMetrics
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lipras
UnifiedMetrics
Commits
aef1ef5f
Unverified
Commit
aef1ef5f
authored
3 years ago
by
Cubxity
Browse files
Options
Downloads
Patches
Plain Diff
build: sign artifacts
parent
3e6f89c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/preview.yml
+6
-1
6 additions, 1 deletion
.github/workflows/preview.yml
.github/workflows/release.yml
+6
-1
6 additions, 1 deletion
.github/workflows/release.yml
api/build.gradle.kts
+5
-1
5 additions, 1 deletion
api/build.gradle.kts
build.gradle.kts
+9
-5
9 additions, 5 deletions
build.gradle.kts
with
26 additions
and
8 deletions
.github/workflows/preview.yml
+
6
−
1
View file @
aef1ef5f
...
...
@@ -8,6 +8,11 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Configure GPG Key
run
:
|
echo -n "SIGNING_KEY" | base64 --decode > /tmp/keyring.gpg
env
:
SIGNING_KEY
:
${{ secrets.SIGNING_KEY }}
-
name
:
Set up JDK
16
uses
:
actions/setup-java@v2
with
:
...
...
@@ -17,7 +22,7 @@ jobs:
-
name
:
Grant execute permission for gradlew
run
:
chmod +x gradlew
-
name
:
Build with Gradle
run
:
./gradlew assemble publish --no-daemon
run
:
./gradlew assemble publish --no-daemon
-Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password= -Psigning.secretKeyRingFile=/tmp/keyring.gpg
env
:
MAVEN_REPO_USER
:
${{ secrets.MAVEN_REPO_USER }}
MAVEN_REPO_PASS
:
${{ secrets.MAVEN_REPO_PASS }}
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
+
6
−
1
View file @
aef1ef5f
...
...
@@ -8,6 +8,11 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Configure GPG Key
run
:
|
echo -n "SIGNING_KEY" | base64 --decode > /tmp/keyring.gpg
env
:
SIGNING_KEY
:
${{ secrets.SIGNING_KEY }}
-
name
:
Set up JDK
16
uses
:
actions/setup-java@v2
with
:
...
...
@@ -17,7 +22,7 @@ jobs:
-
name
:
Grant execute permission for gradlew
run
:
chmod +x gradlew
-
name
:
Build with Gradle
run
:
./gradlew assemble publish --no-daemon
run
:
./gradlew assemble publish --no-daemon
-Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password= -Psigning.secretKeyRingFile=/tmp/keyring.gpg
env
:
MAVEN_REPO_USER
:
${{ secrets.MAVEN_REPO_USER }}
MAVEN_REPO_PASS
:
${{ secrets.MAVEN_REPO_PASS }}
...
...
This diff is collapsed.
Click to expand it.
api/build.gradle.kts
+
5
−
1
View file @
aef1ef5f
...
...
@@ -61,4 +61,8 @@ publishing {
}
}
}
}
\ No newline at end of file
}
signing
{
sign
(
publishing
.
publications
[
"mavenJava"
])
}
This diff is collapsed.
Click to expand it.
build.gradle.kts
+
9
−
5
View file @
aef1ef5f
...
...
@@ -38,6 +38,7 @@ allprojects {
subprojects
{
apply
(
plugin
=
"java"
)
apply
(
plugin
=
"kotlin"
)
apply
(
plugin
=
"signing"
)
apply
(
plugin
=
"maven-publish"
)
tasks
.
withType
<
KotlinCompile
>
{
...
...
@@ -46,11 +47,6 @@ subprojects {
freeCompilerArgs
=
listOf
(
"-Xopt-in=kotlin.RequiresOptIn"
)
}
}
afterEvaluate
{
tasks
.
findByName
(
"shadowJar"
)
?.
also
{
tasks
.
named
(
"assemble"
)
{
dependsOn
(
it
)
}
}
}
configure
<
PublishingExtension
>
{
repositories
{
maven
{
...
...
@@ -67,4 +63,12 @@ subprojects {
}
}
}
afterEvaluate
{
tasks
.
findByName
(
"shadowJar"
)
?.
also
{
tasks
.
named
(
"assemble"
)
{
dependsOn
(
it
)
}
}
configure
<
SigningExtension
>
{
sign
(
tasks
.
findByName
(
"shadowJar"
)
?:
tasks
[
"jar"
])
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment