Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
seachicken committed Jun 11, 2024
1 parent 4d022ed commit e84b406
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,11 @@ jobs:
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Publish Plugin to JetBrains Marketplace
if: "!contains(github.ref_name, 'SNAPSHOT')"
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: |
./gradlew publishPlugin -PpluginVersion=$VERSION -Pchannel=default
./gradlew publishPlugin -PpluginVersion=$VERSION
- name: Upload to GitHub Releases
if: "!contains(github.ref_name, 'SNAPSHOT')"
if: "!contains(github.ref_name, 'beta')"
run: gh release create --title ${{ github.ref_name }} --generate-notes ${{ github.ref_name }} ./build/distributions/intellij-inga-${VERSION}.zip

- name: Publish Plugin to JetBrains Marketplace for BETA
if: "contains(github.ref_name, 'SNAPSHOT')"
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: |
./gradlew publishPlugin -PpluginVersion=$VERSION -Pchannel=beta
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "inga"
version = "0.2.0"
version = "0.2.0-beta.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -63,6 +63,6 @@ tasks {

publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
channels.set(listOf("beta"))
channels.set(listOf(project.version.toString().substringAfter('-', "").substringBefore('.').ifEmpty { "default" }))
}
}

0 comments on commit e84b406

Please sign in to comment.