Skip to content

Commit

Permalink
praying
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixOrigin committed Oct 15, 2023
1 parent c24edc7 commit cd5a5b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ jobs:
- name: checkout source
uses: actions/checkout@v3
- name: Generate versions
uses: HardNorth/[email protected]
id: version
uses: HardNorth/[email protected]
with:
version-source: file
version-file: ${{ env.VERSION_FILE }}
version-file: gradle.properties
version-file-extraction-pattern: '(?<=version=).+'
- name: Update gradle.properties
run: |
sed -i 's/^version=.*/version${{ env.NEXT_VERSION }}/' gradle.properties
- name: Setup JDK
uses: actions/setup-java@v3
with:
Expand All @@ -48,6 +53,6 @@ jobs:
password: ${{ secrets.password }}
format: maven2
repository: maven-releases
coordinates: groupId=net.phoenix artifactId=eventemitter version=1.0.2
coordinates: groupId=net.phoenix artifactId=eventemitter version=${{ env.NEXT_VERSION }}
assets: extension=jar
filename: /build/libs/EventEmitter-1.0-all.jar
filename: /build/libs/EventEmitter.jar
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'net.phoenix'
version = '1.0'
version = project.version

repositories {
mavenCentral()
Expand All @@ -17,4 +17,8 @@ dependencies {

test {
useJUnitPlatform()
}
}

shadowJar {
archiveFileName = 'EventEmitter.jar'
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=1.0.0
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = 'EventEmitter'

0 comments on commit cd5a5b6

Please sign in to comment.