mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Upload artifacts
This commit is contained in:
parent
0fdce8de4d
commit
72b3372f51
2 changed files with 17 additions and 11 deletions
13
.github/workflows/android.yml
vendored
13
.github/workflows/android.yml
vendored
|
@ -38,14 +38,19 @@ jobs:
|
||||||
gpg -d --passphrase "${PASSWORD}" --batch keystore.properties.asc > keystore.properties
|
gpg -d --passphrase "${PASSWORD}" --batch keystore.properties.asc > keystore.properties
|
||||||
echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties.asc
|
echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties.asc
|
||||||
gpg -d --passphrase "${PASSWORD}" --batch local.properties.asc > local.properties
|
gpg -d --passphrase "${PASSWORD}" --batch local.properties.asc > local.properties
|
||||||
- name:
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
ls
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping
|
run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping
|
||||||
|
#https://github.com/actions/upload-artifact
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Mapping files
|
||||||
|
path: app/build/outputs/mapping/**/mapping.txt
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: APK files
|
||||||
|
path: app/build/outputs/apk/**/release/*.apk
|
||||||
- name: Upload to BitBucket
|
- name: Upload to BitBucket
|
||||||
run: |
|
run: |
|
||||||
./gradlew upload -Ptarget=play-preview
|
./gradlew upload -Ptarget=play-preview
|
||||||
|
|
|
@ -338,17 +338,18 @@ android {
|
||||||
variant.buildConfigField "String", "MXTOOLBOX_URI", "\"\""
|
variant.buildConfigField "String", "MXTOOLBOX_URI", "\"\""
|
||||||
|
|
||||||
// $JAVA_HOME/bin/java -jar ~/Android/Sdk/tools/proguard/lib/retrace.jar ~/email/app/schemas/mapping/FairEmail-v1.nnn-github-release-mapping.txt
|
// $JAVA_HOME/bin/java -jar ~/Android/Sdk/tools/proguard/lib/retrace.jar ~/email/app/schemas/mapping/FairEmail-v1.nnn-github-release-mapping.txt
|
||||||
|
|
||||||
if (variant.getBuildType().isMinifyEnabled())
|
if (variant.getBuildType().isMinifyEnabled())
|
||||||
variant.assembleProvider.get().doLast {
|
variant.assembleProvider.get().doLast {
|
||||||
for (file in variant.getMappingFileProvider().get().files) {
|
for (file in variant.getMappingFileProvider().get().files) {
|
||||||
if (file != null && file.exists()) {
|
if (file != null && file.exists()) {
|
||||||
exec {
|
//exec {
|
||||||
commandLine 'curl',
|
// commandLine 'curl',
|
||||||
'-o', '/dev/null',
|
// '-o', '/dev/null',
|
||||||
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
|
// '-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
|
||||||
'--form', "files=@" + file + ";" +
|
// '--form', "files=@" + file + ";" +
|
||||||
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + variant.baseName + "-mapping.txt"
|
// "filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + variant.baseName + "-mapping.txt"
|
||||||
}
|
//}
|
||||||
|
|
||||||
def dir = "${rootDir}/app/schemas/mapping"
|
def dir = "${rootDir}/app/schemas/mapping"
|
||||||
def name = "$archivesBaseName-$variant.baseName-$file.name"
|
def name = "$archivesBaseName-$variant.baseName-$file.name"
|
||||||
|
|
Loading…
Reference in a new issue