-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #735 from aiselp/dev-test
构建流程更新,bug修复
- Loading branch information
Showing
31 changed files
with
9,252 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,35 +10,26 @@ jobs: | |
steps: | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} | ||
run: | | ||
echo "short_ref=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
- name: checkout | ||
id: check | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v4 | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Build inrt template | ||
run: | | ||
chmod 777 ./gradlew | ||
./gradlew inrt:assembleTemplate | ||
ls | ||
- uses: Tlaster/[email protected] | ||
name: Sign inrt APK | ||
with: | ||
releaseDirectory: | | ||
inrt/build/outputs/apk/template/release | ||
signingKeyBase64: ${{ secrets.ISIGNING_KEY }} | ||
output: build/inrt/signed | ||
alias: ${{ secrets.IALIAS }} | ||
keyStorePassword: ${{ secrets.IKEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.IKEY_PASSWORD }} | ||
./gradlew app:buildTemplateApp | ||
- name: Build App | ||
run: | | ||
ls build/inrt/signed | ||
pwd | ||
mv build/inrt/signed/*.apk app/src/main/assets/template.apk | ||
ls app/src/main/assets | ||
./gradlew app:assembleV6 | ||
- uses: Tlaster/[email protected] | ||
name: Sign app APK | ||
|
@@ -50,14 +41,21 @@ jobs: | |
alias: ${{ secrets.AALIAS }} | ||
keyStorePassword: ${{ secrets.AKEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.AKEY_PASSWORD }} | ||
- name: rename apk | ||
run: | | ||
cd build/app/signed | ||
mv app-v6-arm64-v8a-*.apk Autox-v6-arm64-v8a-release-${{steps.vars.outputs.short_ref}}.apk | ||
mv app-v6-armeabi-v7a-*.apk Autox-v6-armeabi-v7a-release-${{steps.vars.outputs.short_ref}}.apk | ||
mv app-v6-universal-*.apk Autox-v6-universal-release-${{steps.vars.outputs.short_ref}}.apk | ||
ls | ||
- name: create-gh-release | ||
if: github.repository == 'kkevsekk1/AutoX' | ||
uses: taiki-e/create-gh-release-action@v1 | ||
with: | ||
changelog: CHANGELOG.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: release | ||
- name: create-release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
|
@@ -69,9 +67,7 @@ jobs: | |
endpoint: oss-cn-hangzhou.aliyuncs.com | ||
access-key-id: ${{ secrets.OSS_KEY_ID }} | ||
access-key-secret: ${{ secrets.OSS_KEY_SECRET }} | ||
- name: mkdir aliyun | ||
- name: update apk to aliyun | ||
if: github.repository == 'kkevsekk1/AutoX' | ||
run: ossutil mkdir oss://autoxjsoss/autoxjs/${{ steps.vars.outputs.short_ref }} | ||
- name: cp files to aliyun | ||
if: github.repository == 'kkevsekk1/AutoX' | ||
run: ossutil cp -rf build/app/signed oss://autoxjsoss/autoxjs/${{ steps.vars.outputs.short_ref }} | ||
ossutil cp -rf build/app/signed oss://autoxjsoss/autoxjs/${{ steps.vars.outputs.short_ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.