Skip to content

Commit fdb0bc3

Browse files
refactor: (#4)
* revert for GitHub action
1 parent 1a0c38f commit fdb0bc3

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Delete old package
13+
uses: actions/delete-package-versions@v3
14+
with:
15+
package-name: net.purefunc.emoji-jvm-string
16+
min-versions-to-keep: 3
17+
token: ${{ secrets.PUBLISH_TOKEN }}
18+
ignore-versions: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.0$"
19+
1220
- name: Checkout
1321
uses: actions/checkout@v3
1422

@@ -18,6 +26,10 @@ jobs:
1826
java-version: "11"
1927
distribution: "adopt-hotspot"
2028
check-latest: true
29+
run: ./gradlew run
2130

22-
- name: Gralde build
23-
run: gradle clean build
31+
- name: Build with Gradle
32+
run: gradle clean publishMavenPublicationToGitHubPackagesRepository
33+
env:
34+
GITHUB_REF_NAME: ${{ github.GITHUB_REF_NAME }}
35+
GITHUB_PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}

β€Žbuild.gradle.ktsβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
44
kotlin("jvm") version "1.6.21"
5+
application
56
}
67

78
group = "net.purefunc"
@@ -10,9 +11,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
1011

1112
repositories {
1213
mavenCentral()
13-
maven {
14-
url = uri("https://jitpack.io")
15-
}
1614
}
1715

1816
dependencies {
@@ -29,4 +27,8 @@ tasks.withType<KotlinCompile> {
2927

3028
tasks.withType<Test> {
3129
useJUnitPlatform()
30+
}
31+
32+
application {
33+
mainClass.set("net.purefunc.generate.MainKt")
3234
}

β€Žemoji-test.txtβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
# group: Smileys & Emotion
3434

3535
# subgroup: face-smiling
36-
1F600 ; fully-qualified # πŸ˜€ E1.0 grinning face
3736
1F603 ; fully-qualified # πŸ˜ƒ E0.6 grinning face with big eyes
3837
1F604 ; fully-qualified # πŸ˜„ E0.6 grinning face with smiling eyes
3938
1F601 ; fully-qualified # 😁 E0.6 beaming face with smiling eyes

0 commit comments

Comments
Β (0)