Skip to content

Commit

Permalink
try2 add build to release
Browse files Browse the repository at this point in the history
  • Loading branch information
moprules committed Aug 25, 2024
1 parent 06be647 commit e3308c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: gradle/actions/setup-gradle@v4

# Публикуем библиотеку в maven central
- name: Publish library Maven Central
- name: Publish library Github Packages and Maven Central
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Rename archive for release
run: |
mv $GITHUB_WORKSPACE/build/local_maven/build.zip ${{ env.release_path }}
cp $GITHUB_WORKSPACE/build/local_maven/bundle.zip ${{ env.release_path }}
- name: Release
uses: softprops/action-gh-release@v2
Expand Down
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fun getLastVersion(defaultVersion: String = "1.0.0-SNAPSHOT"): String {
}

group = "ru.moprules"
version = getLastVersion("1.0.0-SNAPSHOT")
version = getLastVersion("0.0.1-SNAPSHOT")

repositories {
mavenCentral()
Expand Down Expand Up @@ -144,6 +144,5 @@ tasks.register("lastVer") {
doLast {
val ver = getLastVersion()
println("project verson: $ver")
// Логика использования тега
}
}

0 comments on commit e3308c3

Please sign in to comment.