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
|
run: npm run android:apk:linux
|
||||||
|
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Paarrot-Android-debug.apk
|
name: Paarrot-Android
|
||||||
path: android/app/build/outputs/apk/debug/app-debug.apk
|
path: android/app/build/outputs/apk/debug/Paarrot-*.apk
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
git push origin "v${{ steps.version.outputs.VERSION }}"
|
git push origin "v${{ steps.version.outputs.VERSION }}"
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
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/ \;
|
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)
|
APK=$(find artifacts -type f -name "*.apk" | head -1)
|
||||||
if [ -n "$APK" ]; then
|
if [ -n "$APK" ]; then
|
||||||
cp "$APK" "release-files/Paarrot.apk"
|
VERSION="${{ steps.version.outputs.VERSION }}"
|
||||||
|
cp "$APK" "release-files/Paarrot-${VERSION}.apk"
|
||||||
fi
|
fi
|
||||||
ls -la release-files/
|
ls -la release-files/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user