Skip to content

Commit

Permalink
Merge pull request #32 from LIlGG/chore/app-store
Browse files Browse the repository at this point in the history
update app-store-release
  • Loading branch information
LIlGG authored Oct 10, 2023
2 parents a89b55c + 03d8402 commit c687f63
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
distribution: "temurin"
cache: "gradle"
java-version: 17
- name: Build with Gradle
run: |
Expand All @@ -27,23 +27,23 @@ jobs:
version=${version#v}
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
- name: Archive plugin-live2d jar
uses: actions/upload-artifact@v2
with:
name: plugin-starter
name: plugin-live2d
path: |
build/libs/*-plain.jar
build/libs/*.jar
retention-days: 1

github-release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
- name: Download plugin-live2d jar
uses: actions/download-artifact@v2
with:
name: plugin-starter
name: plugin-live2d
path: build/libs
- name: Get Name of Artifact
id: get_artifact
Expand Down Expand Up @@ -79,3 +79,26 @@ jobs:
name: artifactName,
data: await fs.readFile(artifactPathName)
});
app-store-release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Download plugin-live2d jar
uses: actions/download-artifact@v2
with:
name: plugin-live2d
path: build/libs
- name: Sync to Halo App Store
uses: halo-sigs/app-store-release-action@main
with:
github-token: ${{secrets.GITHUB_TOKEN}}
app-id: ${{secrets.APP_ID}}
release-id: ${{ github.event.release.id }}
assets-dir: "build/libs"
halo-username: ${{ secrets.HALO_USERNAME }}
halo-password: ${{ secrets.HALO_PASSWORD }}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.1.2
version=1.1.3-SNAPSHOT
1 change: 0 additions & 1 deletion src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: PluginLive2d
spec:
enabled: true
version: 1.1.2
requires: ">=2.4.0"
author:
name: LIlGG
Expand Down

0 comments on commit c687f63

Please sign in to comment.