mirror of
https://github.com/octoleo/plantuml.git
synced 2024-10-31 19:22:31 +00:00
commit
ee3037db80
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -153,14 +153,22 @@ jobs:
|
|||||||
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
|
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
run: .github/scripts/release-snapshot.sh
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
.github/scripts/release-snapshot.sh
|
||||||
|
gradle publish
|
||||||
|
|
||||||
- name: Create release in GitHub
|
- name: Create release in GitHub
|
||||||
if: needs.workflow_config.outputs.do_release == 'true'
|
if: needs.workflow_config.outputs.do_release == 'true'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
TAG: ${{ github.event.ref }}
|
TAG: ${{ github.event.ref }}
|
||||||
run: .github/scripts/release.sh
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
.github/scripts/release.sh
|
||||||
|
gradle publish
|
||||||
|
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
needs: [ workflow_config, test, upload ]
|
needs: [ workflow_config, test, upload ]
|
||||||
|
@ -112,16 +112,14 @@ publishing {
|
|||||||
suppressAllPomMetadataWarnings()
|
suppressAllPomMetadataWarnings()
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
name = "fstest"
|
|
||||||
url = uri(layout.buildDirectory.dir("repo"))
|
|
||||||
}
|
|
||||||
maven {
|
maven {
|
||||||
name = "OSSRH"
|
name = "OSSRH"
|
||||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
|
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
|
||||||
credentials {
|
credentials {
|
||||||
username = System.getenv("MAVEN_USERNAME")
|
username = System.getenv("OSSRH_USERNAME")
|
||||||
password = System.getenv("MAVEN_PASSWORD")
|
password = System.getenv("OSSRH_PASSWORD")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user