Skip to content

Commit

Permalink
remove sha256sum release
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Aug 14, 2022
1 parent 0646a6e commit 11bcd59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 62 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,6 @@ jobs:
with:
name: APKs
path: ${{ env.APK }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-ARM ${{ env.SHA256_ARM }}"
path: ${{ env.SUM_ARM }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-ARM64 ${{ env.SHA256_ARM64 }}"
path: ${{ env.SUM_ARM64 }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-X64 ${{ env.SHA256_X64 }}"
path: ${{ env.SUM_X64 }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-X86 ${{ env.SHA256_X86 }}"
path: ${{ env.SUM_X86 }}
publish:
name: Publish Release
if: github.event.inputs.publish != 'y'
Expand All @@ -129,7 +113,6 @@ jobs:
mv ghr*linux_amd64/ghr .
mkdir apks
find artifacts -name "*.apk" -exec cp {} apks \;
find artifacts -name "*.sha256sum.txt" -exec cp {} apks \;
./ghr -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" apks
upload:
name: Upload Release
Expand Down
45 changes: 0 additions & 45 deletions buildSrc/src/main/kotlin/Helpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.gradle.api.Project
import org.gradle.api.plugins.ExtensionAware
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions
import java.io.File
import java.security.MessageDigest
import java.util.*
import kotlin.system.exitProcess
Expand Down Expand Up @@ -268,50 +267,6 @@ fun Project.setupAppCommon() {
getByName("debug").signingConfig = key
}
}
val calculateTaskName = "calculate${requireFlavor()}APKsSHA256"
(this as? AbstractAppExtension)?.apply {
tasks.register(calculateTaskName) {
val githubEnv = File(System.getenv("GITHUB_ENV") ?: "this-file-does-not-exist")

doLast {
applicationVariants.all {
if (name.equals(requireFlavor(), ignoreCase = true)) outputs.all {
if (outputFile.isFile) {
val sha256 = sha256Hex(outputFile.readBytes())
val sum = File(
outputFile.parentFile,
outputFile.nameWithoutExtension + ".sha256sum.txt"
)
sum.writeText(sha256)
if (githubEnv.isFile) when {
outputFile.name.contains("-arm64") -> {
githubEnv.appendText("SUM_ARM64=${sum.absolutePath}\n")
githubEnv.appendText("SHA256_ARM64=$sha256\n")
}
outputFile.name.contains("-armeabi") -> {
githubEnv.appendText("SUM_ARM=${sum.absolutePath}\n")
githubEnv.appendText("SHA256_ARM=$sha256\n")
}
outputFile.name.contains("-x86_64") -> {
githubEnv.appendText("SUM_X64=${sum.absolutePath}\n")
githubEnv.appendText("SHA256_X64=$sha256\n")
}
outputFile.name.contains("-x86") -> {
githubEnv.appendText("SUM_X86=${sum.absolutePath}\n")
githubEnv.appendText("SHA256_X86=$sha256\n")
}
}
}
}
}
}
dependsOn("package${requireFlavor()}")
}
val assemble = "assemble${requireFlavor()}"
tasks.whenTaskAdded {
if (name == assemble) dependsOn(calculateTaskName)
}
}
}
}

Expand Down

0 comments on commit 11bcd59

Please sign in to comment.