diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 278fb17..5b23ab2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - 'Release/v*' + - 'Release/*' jobs: release: @@ -14,9 +14,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set release name - run: echo ::set-env name=RELEASE_NAME::$(echo ${GITHUB_REF:11}) - - name: Create release id: create_release uses: actions/create-release@v1 @@ -24,7 +21,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: ${{ env.RELEASE_NAME }} + release_name: ${{ github.ref }} draft: false prerelease: false @@ -45,10 +42,11 @@ jobs: with: distribution: 'adopt' java-version: 11 - - name: Set release name - run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:20}) + - name: "Set Release Version Env" + run: | + echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV + - name: Publish library env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_VERSION: ${{ env.RELEASE_VERSION }} run: ./gradlew publish diff --git a/Sample/routes/build.gradle b/Sample/routes/build.gradle index 7dcdd67..4c7c8d8 100644 --- a/Sample/routes/build.gradle +++ b/Sample/routes/build.gradle @@ -38,5 +38,5 @@ dependencies { implementation libs.androidx.appcompat implementation libs.material - api 'com.veepee.vpcore:link-route:1.0.0' + api 'com.veepee.vpcore.link-router:link-router:1.0.0' } diff --git a/Sample/settings.gradle b/Sample/settings.gradle index 424d3f5..0c34dff 100644 --- a/Sample/settings.gradle +++ b/Sample/settings.gradle @@ -7,7 +7,7 @@ include ':feature_b' includeBuild('../') { dependencySubstitution { - substitute module('com.veepee.vpcore:link-route') using project(':library') + substitute module('com.veepee.vpcore.link-router:link-router') using project(':library') } } diff --git a/library/build.gradle b/library/build.gradle index 84fc4cc..00b4e20 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -63,8 +63,8 @@ afterEvaluate { } publications { release(MavenPublication) { - groupId "com.veepee.vpcore" - artifactId "link-route" + groupId "com.veepee.vpcore.link-router" + artifactId "link-router" version System.getenv('RELEASE_VERSION') from components.release artifact(sourceJar)