Skip to content

Commit

Permalink
CI change 7
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterBin committed Jun 4, 2024
1 parent 739695e commit 439bb8e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/neutral-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
cd ${{ github.workspace }}/vico
VERSION_NAME=$(grep -oP "(?<=version_name).*(?=\",)" versions.gradle | grep -oP "(?<=\").*")
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "TAG_NAME=v$VERSION_NAME" >> $GITHUB_ENV
./gradlew assembleDebug
- name: Create tag
Expand All @@ -41,7 +40,7 @@ jobs:
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ env.VERSION_NAME }}",
ref: "refs/tags/${{ env.VERSION_NAME }}-tangem${{ github.run_number }}",
sha: context.sha
})
Expand All @@ -52,7 +51,7 @@ jobs:
run: |
cd ${{ github.workspace }}/vico
echo sdk.dir = $ANDROID_HOME > local.properties
./gradlew -PgithubUser=${{ secrets.GITHUB_ACTOR }} -PgithubPass=${{ secrets.GITHUB_TOKEN }} -PartifactVersion=${{ env.VERSION_NAME }} publish
./gradlew -PgithubUser=${{ secrets.GITHUB_ACTOR }} -PgithubPass=${{ secrets.GITHUB_TOKEN }} -PpublishVersion=${{ env.VERSION_NAME }}-tangem${{ github.run_number }} publish
- name: Build notification
if: always()
Expand All @@ -64,5 +63,5 @@ jobs:
failure_text: 'GitHub Action #${{ github.run_number }} failed. Tag has not been not created.'
cancelled_text: 'GitHub Action #${{ github.run_number }} was cancelled'
fields: |
[{"title": "TAG", "value": "${{ env.VERSION_NAME }}"},
[{"title": "TAG", "value": "${{ env.VERSION_NAME }}-tangem${{ github.run_number }}"},
{"title": "Action URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}]
6 changes: 0 additions & 6 deletions common-scripts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ void customizePom(MavenPom pom) {
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}

pom.scm {
connection = "scm:git:git://github.com/tangem/vico.git"
developerConnection = "scm:git:ssh://github.com/tangem/vico.git"
url = "https://github.com/patrykandpatrick/vico"
}
}

boolean isReleaseVersion() {
Expand Down
3 changes: 2 additions & 1 deletion versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ ext {
library = [
groupId : "com.patrykandpatrick.vico",
publishGroupId : "com.tangem.vico",
version_name : "2.0.0-alpha.21-tangem1",
version_name : "2.0.0-alpha.21",
publishVersion : project.hasProperty('publishVersion') ? project.getProperty('publishVersion') : '0.0.1',
version_code : 1,
target_sdk : 34,
min_sdk : 19,
Expand Down
2 changes: 1 addition & 1 deletion vico/compose-m2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ afterEvaluate {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = project.version
version = library.publishVersion
from components.release

customizePom(pom)
Expand Down
2 changes: 1 addition & 1 deletion vico/compose-m3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ afterEvaluate {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = project.version
version = library.publishVersion
from components.release

customizePom(pom)
Expand Down
2 changes: 1 addition & 1 deletion vico/compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ afterEvaluate {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = project.version
version = library.publishVersion
from components.release

customizePom(pom)
Expand Down
2 changes: 1 addition & 1 deletion vico/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ afterEvaluate {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = project.version
version = library.publishVersion
from components.release

customizePom(pom)
Expand Down

0 comments on commit 439bb8e

Please sign in to comment.