Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ jobs:
- name: Build #ビルド
shell: bash
run: |
./gradlew build publish --stacktrace --no-daemon
./gradlew build --stacktrace --no-daemon

- name: Publish to Maven #Mavenリポジトリに公開
shell: bash
continue-on-error: true
run: |
./gradlew publish --stacktrace --no-daemon
env:
mavenpassword: ${{ secrets.MAVEN_PASSWORD }}

Expand Down
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
version = if (System.getenv("GITHUB_REF") != null && System.getenv("GITHUB_REF").startsWith("refs/tags/v")) {
System.getenv("GITHUB_REF").substring("refs/tags/v".length)
} else {
"NONE"
val gitHash = providers.exec {

Check warning on line 9 in build.gradle.kts

View workflow job for this annotation

GitHub Actions / qodana

Unstable API Usage

'exec(org.gradle.api.Action)' is marked unstable with @Incubating
commandLine("git", "rev-parse", "--short", "HEAD")
}.standardOutput.asText.get().trim()

Check warning on line 11 in build.gradle.kts

View workflow job for this annotation

GitHub Actions / qodana

Unstable API Usage

'getAsText()' is declared in unstable interface 'org.gradle.process.ExecOutput.StandardStreamContent' marked with @Incubating

Check warning on line 11 in build.gradle.kts

View workflow job for this annotation

GitHub Actions / qodana

Unstable API Usage

'getStandardOutput()' is declared in unstable interface 'org.gradle.process.ExecOutput' marked with @Incubating
"dev-$gitHash"
}

changelog {
Expand Down
Loading