Skip to content

Commit

Permalink
.github: Generate and upload diff with patches
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Sep 23, 2024
1 parent 9b4f92d commit 13b1df2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@ jobs:

- run: java -jar apktool_${{ env.APKTOOL_VER }}.jar b .

- name: Generate diff file with patches
run: |
git fetch --unshallow
PATCH_NAME=$(basename "$GITHUB_REPOSITORY")
echo "PATCH_NAME=$PATCH_NAME" >> $GITHUB_ENV
git diff $(git rev-list --max-parents=0 HEAD) -- . ':(exclude).github' | tee "${PATCH_NAME}.patch"
- uses: actions/upload-artifact@v3
with:
name: APK
path: dist/HwIms.apk

- uses: actions/upload-artifact@v3
with:
name: Patch
path: "${{ env.PATCH_NAME }}.patch"

0 comments on commit 13b1df2

Please sign in to comment.