Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
test action
  • Loading branch information
956237586 committed Oct 27, 2023
1 parent 8524053 commit f556c71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-on-space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Publish on Space
on:
push:
branches: [ master, publish_* ]

tags:
- "v*"
jobs:
publish:
name: publish on space
Expand All @@ -19,11 +20,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Tag name # Inspired from https://github.community/t/how-to-get-just-the-tag-name/16241/11
id: tag_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Add properties
run: |
echo -n publishingVersion= >> gradle.properties
echo ${{ github.sha }} | head -c 8 >> gradle.properties
- name: Clean
run: ./gradlew clean
- name: Publish to space
run: ./gradlew :projector-${{ matrix.modules }}:publish -PmavenUsername=${{ secrets.SPACE_NAME }} -PmavenPassword=${{ secrets.SPACE_TOKEN }}
run: ./gradlew :projector-${{ matrix.modules }}:publish -PpublishingVersion=${{ steps.tag_name.outputs.SOURCE_TAG }} -PmavenUsername=${{ secrets.SPACE_NAME }} -PmavenPassword=${{ secrets.SPACE_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ val targetJvm: String by project
val publishingVersion: String by project

subprojects {
group = "org.jetbrains.projector"
group = "cn.hylstudio.skykoma.projector-client"
version = publishingVersion

repositories {
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/publishOnSpace.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public fun Project.publishToSpace(fromComponent: String) {
publications {
create<MavenPublication>("maven") {
pom {
url.set("https://github.com/JetBrains/projector-client")
url.set("https://github.com/956237586/projector-client")
licenses {
license {
name.set("MIT Licence")
url.set("https://github.com/JetBrains/projector-client/blob/master/LICENSE.txt")
url.set("https://github.com/956237586/projector-client/blob/master/LICENSE.txt")
}
}
}
Expand All @@ -47,7 +47,7 @@ public fun Project.publishToSpace(fromComponent: String) {
}
}
repositories {
maven("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies") {
maven("https://packages.aliyun.com/maven/repository/2425368-release-jMTt8f/") {
credentials(PasswordCredentials::class)
}
}
Expand Down

0 comments on commit f556c71

Please sign in to comment.