fix: update upload artifact action to v4 and adjust APK naming convention
This commit is contained in:
@@ -93,10 +93,10 @@ jobs:
|
||||
run: npm run android:apk:linux
|
||||
|
||||
- name: Upload APK
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Paarrot-Android-debug.apk
|
||||
path: android/app/build/outputs/apk/debug/app-debug.apk
|
||||
name: Paarrot-Android
|
||||
path: android/app/build/outputs/apk/debug/Paarrot-*.apk
|
||||
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -144,7 +144,7 @@ jobs:
|
||||
git push origin "v${{ steps.version.outputs.VERSION }}"
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
@@ -154,7 +154,8 @@ jobs:
|
||||
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.nupkg" -o -name "RELEASES*" \) -exec cp {} release-files/ \;
|
||||
APK=$(find artifacts -type f -name "*.apk" | head -1)
|
||||
if [ -n "$APK" ]; then
|
||||
cp "$APK" "release-files/Paarrot.apk"
|
||||
VERSION="${{ steps.version.outputs.VERSION }}"
|
||||
cp "$APK" "release-files/Paarrot-${VERSION}.apk"
|
||||
fi
|
||||
ls -la release-files/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user