Skip to content

Commit

Permalink
ci: Revert back to unzipped Android artifacts. (#7258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveice10 authored Dec 20, 2023
1 parent a47d8a7 commit 2e369c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .ci/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,20 @@ function pack_artifacts() {
fi
}

if [ -z "$PACK_INDIVIDUALLY" ]; then
# Pack all of the artifacts at once.
pack_artifacts build/bundle
else
if [ -n "$UNPACKED" ]; then
# Copy the artifacts to be uploaded unpacked.
for ARTIFACT in build/bundle/*; do
FILENAME=$(basename "$ARTIFACT")
EXTENSION="${FILENAME##*.}"

mv "$ARTIFACT" "artifacts/$REV_NAME.$EXTENSION"
done
elif [ -n "$PACK_INDIVIDUALLY" ]; then
# Pack and upload the artifacts one-by-one.
for ARTIFACT in build/bundle/*; do
pack_artifacts "$ARTIFACT"
done
else
# Pack all of the artifacts into a single archive.
pack_artifacts build/bundle
fi
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ jobs:
run: ../../../.ci/pack.sh
working-directory: src/android/app
env:
PACK_INDIVIDUALLY: 1
SKIP_7Z: 1
UNPACKED: 1
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 2e369c0

Please sign in to comment.