Skip to content

Commit

Permalink
update app-store-release
Browse files Browse the repository at this point in the history
  • Loading branch information
LIlGG committed Oct 10, 2023
1 parent a89b55c commit a5dd1a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 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

0 comments on commit a5dd1a2

Please sign in to comment.