Skip to content

Commit 85dc038

Browse files
committed
Prepare for release from GitHub
1 parent f3f21c6 commit 85dc038

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ jobs:
6969
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
7070
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
7171
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
72-
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
7372
run: ./gradlew publishPlugin
7473

7574
# Upload artifact as a release asset

build.gradle.kts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ fun properties(key: String) = providers.gradleProperty(key)
77

88
fun environment(key: String) = providers.environmentVariable(key)
99

10-
fun secretToolLookup(vararg attrs: Pair<String, String>): Provider<String> =
11-
Providers.changing {
12-
ByteArrayOutputStream().also { out ->
13-
exec {
14-
executable = "secret-tool"
15-
args = listOf("lookup", *attrs.flatMap { (k, v) -> listOf(k, v) }.toTypedArray())
16-
standardOutput = out
17-
}.assertNormalExitValue().rethrowFailure()
18-
}.toString()
19-
}
20-
2110
plugins {
2211
id("java") // Java support
2312
alias(libs.plugins.kotlin) // Kotlin support
@@ -137,13 +126,13 @@ tasks {
137126
}
138127

139128
signPlugin {
140-
privateKeyFile = file("secret/private.pem")
141-
certificateChainFile = file("secret/chain.crt")
129+
certificateChain = environment("CERTIFICATE_CHAIN")
130+
privateKey = environment("PRIVATE_KEY")
142131
}
143132

144133
publishPlugin {
145134
dependsOn("patchChangelog")
146-
token = secretToolLookup("jetbrains" to "marketplace")
135+
token = environment("PUBLISH_TOKEN")
147136
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels,
148137
// like 2.1.7-alpha.3.
149138
// Specify pre-release label to publish the plugin in a custom Release Channel automatically.

0 commit comments

Comments
 (0)