Skip to content

Commit

Permalink
prepublish 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg886 committed Aug 15, 2024
1 parent 0a6fcf6 commit 68bb565
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@ on:
- '*.*'
branches: [ "master" ]

#jobs:
# set-tag-name:
# runs-on: ubuntu-latest
# env:
# TAG_NAME: ${{ github.ref_name }}
#
# steps:
# - name: Display Tag Name
# run |
# echo "The tag name is $TAG_NAME"


jobs:
publish:
runs-on: ubuntu-latest
env:
APP_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set Tag
id: set_tag
run: |
set appVersion = ${{ github.ref_name }}
echo "::set-tag-result is $appVersion"
- name: Install JDK
uses: actions/setup-java@v4
with:
Expand Down
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ plugins {
}

group = "top.kagg886"
val appVersion: String by project
version = appVersion
val APP_VERSION: String by project
version = APP_VERSION

println("APP_VERSION: $APP_VERSION")

repositories {
mavenCentral()
Expand Down

0 comments on commit 68bb565

Please sign in to comment.