Skip to content

Commit

Permalink
fix release name
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Cesar Bueno Cotta committed Jul 29, 2021
1 parent 27210c9 commit dfe8663
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- 'Release/v*'
- 'Release/*'

jobs:
release:
Expand All @@ -14,17 +14,14 @@ 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.RELEASE_NAME }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

Expand All @@ -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
2 changes: 1 addition & 1 deletion Sample/routes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
2 changes: 1 addition & 1 deletion Sample/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dfe8663

Please sign in to comment.