Try uploading renamed apk file

This commit is contained in:
OmarHatem 2022-11-29 14:50:46 +02:00
parent e78ef3c201
commit 12f4b9339c

View file

@ -126,12 +126,16 @@ jobs:
mv pubspec_base.yaml test-apk/$GITHUB_HEAD_REF.apk
cd test-apk
ls
apkPath=pwd/${{ GITHUB_HEAD_REF }}.apk
apkPath=pwd/$GITHUB_HEAD_REF.apk
echo "===================="
echo $apkPath
echo "===================="
echo "artifactPath=test-apk/${{ GITHUB_HEAD_REF.apk }}" >> $GITHUB_ENV
echo "artifactPath=test-apk/$GITHUB_HEAD_REF.apk" >> $GITHUB_ENV
echo "artifactPath2=test-apk/\$GITHUB_HEAD_REF.apk" >> $GITHUB_ENV
echo "artifactPath3=test-apk/\${{ GITHUB_HEAD_REF.apk }}" >> $GITHUB_ENV
echo ${{ env.artifactPath }}
echo ${{ env.artifactPath2 }}
echo ${{ env.artifactPath3 }}
- name: Upload Artifact
continue-on-error: true
@ -153,5 +157,21 @@ jobs:
with:
name: test-apks-artifacts
path: ${{ env.artifactPath }}
retention-days: 30
retention-days: 1
- name: Upload Artifact
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: test-apks-artifacts
path: ${{ env.artifactPath2 }}
retention-days: 1
- name: Upload Artifact
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: test-apks-artifacts
path: ${{ env.artifactPath3 }}
retention-days: 1