Skip to content

Commit

Permalink
改进 Sillot CI/CD 工作流 #655
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Apr 25, 2024
1 parent 473636d commit 844f8e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
echo "release_version=v${{ steps.version.outputs.value }}_$(TZ=Asia/Shanghai date +'%Y%m%d')_syv${{ steps.syv.outputs.value }}" >> $GITHUB_OUTPUT
changelog1=$(python scripts/parse-changelog-HEAD.py -t ${{ github.ref }} -b ${{ steps.thisLatestRelease.outputs.release }} ${{ env.repo_owner }}/${{ env.repo_name }})
changelog2=$(python scripts/parse-changelog-sillot.py -t ${{ github.ref }} ${{ env.repo_owner }}/${{ env.repo_name }})
changelog3=$(python scripts/parse-changelog-sillot.py -t ${{ github.ref }} ${{ env.repo_owner }}/${{ matrix.string.repo_name_android }})
changelog3=$(python scripts/parse-changelog-sillot.py -t ${{ github.ref }} ${{ env.repo_owner }}/${{ env.repo_name_android }})
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "release_body_sillot<<$EOF" >> $GITHUB_ENV
echo "$changelog1" >> $GITHUB_ENV
Expand Down Expand Up @@ -318,14 +318,14 @@ jobs:
uses: K-Sillot/rm@master
if: contains( matrix.config.suffix, 'apk')
with:
path: ${{ github.workspace }}/${{ env.repo_owner }}/${{ matrix.string.repo_name_android }}
path: ${{ github.workspace }}/${{ env.repo_owner }}/${{ env.repo_name_android }}

- name: Checkout android repo
uses: actions/checkout@v4
if: contains( matrix.config.suffix, 'apk')
with:
repository: ${{ env.repo_owner }}/${{ matrix.string.repo_name_android }}
path: ${{ github.workspace }}/${{ env.repo_owner }}/${{ matrix.string.repo_name_android }}
repository: ${{ env.repo_owner }}/${{ env.repo_name_android }}
path: ${{ github.workspace }}/${{ env.repo_owner }}/${{ env.repo_name_android }}

- name: Before android build
if: contains( matrix.config.suffix, 'apk')
Expand All @@ -336,7 +336,7 @@ jobs:

- name: Build with Gradle
if: contains( matrix.config.suffix, 'apk')
working-directory: ${{ github.workspace }}/${{ env.repo_owner }}/${{ matrix.string.repo_name_android }}
working-directory: ${{ github.workspace }}/${{ env.repo_owner }}/${{ env.repo_name_android }}
run: ./gradlew assembleOfficialAction --quiet --stacktrace
continue-on-error: false

Expand All @@ -345,7 +345,7 @@ jobs:
name: Sign APK
id: sign_app
with:
releaseDirectory: ${{ github.workspace }}/${{ env.repo_owner }}/${{ matrix.string.repo_name_android }}/app/build/outputs/apk/official/action
releaseDirectory: ${{ github.workspace }}/${{ env.repo_owner }}/${{ env.repo_name_android }}/app/build/outputs/apk/official/action
signingKeyBase64: ${{ secrets.APK_SIGN_KEY_JKS_BASE64 }}
alias: ${{ secrets.APK_SIGN_KEY_ALIAS }}
keyStorePassword: ${{ secrets.APK_SIGN_KEY_JKS_PW }}
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sillot",
"version": "0.31.1790",
"version": "0.31.1800",
"syv": "3.0.12",
"sypv": "[]",
"description": "Build Your Eternal Digital Garden",
Expand Down

0 comments on commit 844f8e4

Please sign in to comment.