We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d792d87 commit a1962d1Copy full SHA for a1962d1
2 files changed
.github/workflows/release.yml
@@ -6,13 +6,17 @@ jobs:
6
publish:
7
runs-on: ubuntu-latest
8
steps:
9
+ - name: Get Version from Tag
10
+ run: |
11
+ echo "VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
12
+ echo "VERSION=${GITHUB_REF:11}"
13
- uses: actions/checkout@v2
14
- name: Set up JDK 11
15
uses: actions/setup-java@v1
16
with:
17
java-version: 11
18
- name: Publish package
- run: ./gradlew publish
19
+ run: ./gradlew -Pversion=${VERSION} publish
20
env:
21
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
22
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
build.gradle.kts
@@ -11,7 +11,6 @@ java {
withSourcesJar()
}
-version = "1.1.0"
group = "org.chenliang.oggus"
repositories {
0 commit comments