Skip to content

Commit

Permalink
chore(ci): append architecture to apk filename
Browse files Browse the repository at this point in the history
  • Loading branch information
moetayuko committed Nov 26, 2024
1 parent 2e6349c commit d6aea8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ jobs:
V: s
IGNORE_ERRORS: n m y

- name: Append architecture to apk filename
if: matrix.ref == 'main'
working-directory: bin/packages/${{ matrix.arch }}
run: |
file=$(find . -name 'cloudflared*.apk')
if [ -n "$file" ] && [[ "$file" != *${{ matrix.arch }}* ]]; then
filename="${file%.*}"
extension="${file##*.}"
mv "$file" "$filename-${{ matrix.arch }}.$extension"
fi
- name: Upload Output Folder
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d6aea8a

Please sign in to comment.