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
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 }}
0 commit comments