Skip to content

Commit 9d8df50

Browse files
committed
feat: auto-publish
1 parent 39ab488 commit 9d8df50

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
.kotlin
66
build
77
/src/main/gen/
8+
.env
9+

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@
33
# PHP Opcodes Lang Changelog
44

55
## [Unreleased]
6+
7+
## [2025.0.3] - 2025-08-01
8+
69
### Added
10+
711
- Initial scaffold created from [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template)
12+
13+
[Unreleased]: https://github.com/xepozz/php-opcodes-language-plugin/compare/v2025.0.3...HEAD
14+
15+
[2025.0.3]: https://github.com/xepozz/php-opcodes-language-plugin/commits/v2025.0.3

build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import org.gradle.kotlin.dsl.withType
21
import org.jetbrains.changelog.Changelog
32
import org.jetbrains.changelog.markdownToHTML
43
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
54
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5+
import java.nio.charset.Charset
6+
import java.util.*
67

78
plugins {
89
id("java") // Java support
@@ -23,6 +24,10 @@ sourceSets {
2324
}
2425
}
2526
}
27+
28+
val envProperties = Properties()
29+
envProperties.load(file(".env").reader(Charset.forName("UTF-8")))
30+
2631
// Set the JVM language level used to build the project.
2732
kotlin {
2833
jvmToolchain(21)
@@ -101,7 +106,7 @@ intellijPlatform {
101106
}
102107

103108
publishing {
104-
token = providers.environmentVariable("PUBLISH_TOKEN")
109+
token = provider { envProperties["PUBLISH_TOKEN"] as String }
105110
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
106111
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
107112
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel

0 commit comments

Comments
 (0)