Skip to content

Commit c687f63

Browse files
authored
Merge pull request #32 from LIlGG/chore/app-store
update app-store-release
2 parents a89b55c + 03d8402 commit c687f63

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

.github/workflows/workflow.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Set up JDK 17
1818
uses: actions/setup-java@v2
1919
with:
20-
distribution: 'temurin'
21-
cache: 'gradle'
20+
distribution: "temurin"
21+
cache: "gradle"
2222
java-version: 17
2323
- name: Build with Gradle
2424
run: |
@@ -27,23 +27,23 @@ jobs:
2727
version=${version#v}
2828
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
2929
./gradlew clean build -x test
30-
- name: Archive plugin-starter jar
30+
- name: Archive plugin-live2d jar
3131
uses: actions/upload-artifact@v2
3232
with:
33-
name: plugin-starter
33+
name: plugin-live2d
3434
path: |
35-
build/libs/*-plain.jar
35+
build/libs/*.jar
3636
retention-days: 1
3737

3838
github-release:
3939
runs-on: ubuntu-latest
4040
needs: build
4141
if: github.event_name == 'release'
4242
steps:
43-
- name: Download plugin-starter jar
43+
- name: Download plugin-live2d jar
4444
uses: actions/download-artifact@v2
4545
with:
46-
name: plugin-starter
46+
name: plugin-live2d
4747
path: build/libs
4848
- name: Get Name of Artifact
4949
id: get_artifact
@@ -79,3 +79,26 @@ jobs:
7979
name: artifactName,
8080
data: await fs.readFile(artifactPathName)
8181
});
82+
83+
app-store-release:
84+
runs-on: ubuntu-latest
85+
needs: build
86+
if: github.event_name == 'release'
87+
steps:
88+
- uses: actions/checkout@v3
89+
with:
90+
submodules: true
91+
- name: Download plugin-live2d jar
92+
uses: actions/download-artifact@v2
93+
with:
94+
name: plugin-live2d
95+
path: build/libs
96+
- name: Sync to Halo App Store
97+
uses: halo-sigs/app-store-release-action@main
98+
with:
99+
github-token: ${{secrets.GITHUB_TOKEN}}
100+
app-id: ${{secrets.APP_ID}}
101+
release-id: ${{ github.event.release.id }}
102+
assets-dir: "build/libs"
103+
halo-username: ${{ secrets.HALO_USERNAME }}
104+
halo-password: ${{ secrets.HALO_PASSWORD }}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.1.2
1+
version=1.1.3-SNAPSHOT

src/main/resources/plugin.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: PluginLive2d
55
spec:
66
enabled: true
7-
version: 1.1.2
87
requires: ">=2.4.0"
98
author:
109
name: LIlGG

0 commit comments

Comments
 (0)