From cac4f8cedf49de96a491df0ba3d56ea2d436f48f Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 24 Aug 2022 15:15:26 +0100 Subject: [PATCH] ignoring node modules --- .github/workflows/nightly.yml | 4 ++-- .gitignore | 2 +- app/build.gradle | 7 +++++-- tools/beta-release/app.js | 7 ++++++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 945a0de..8162c56 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -26,6 +26,6 @@ jobs: - uses: actions/github-script@v6 with: script: | - const { script } = await import('${{ github.workspace }}/tools/beta-release/app.js') - await script({github, context, core}) + const { startReleaseProcess } = await import('${{ github.workspace }}/tools/beta-release/app.js') + await startReleaseProcess({github, context, core}) diff --git a/.gitignore b/.gitignore index 9257dec..0f83f23 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ .cxx local.properties /benchmark-out -**/node_modules \ No newline at end of file +/node_modules \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 5ed4c0c..1e87c5c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,8 +46,11 @@ android { "proguard/serializationx.pro", "proguard/olm.pro" - // actual releases are signed with a different config - signingConfig = buildTypes.debug.signingConfig + if (project.hasProperty("unsigned")) { + // releases are signed externally + } else { + signingConfig = buildTypes.debug.signingConfig + } } } diff --git a/tools/beta-release/app.js b/tools/beta-release/app.js index b0ebf35..a430101 100644 --- a/tools/beta-release/app.js +++ b/tools/beta-release/app.js @@ -8,7 +8,7 @@ const config = { const rcBranchName = "release-candidate" -export const script = async ({ github, context, core }) => { +export const startReleaseProcess = async ({ github, context, core }) => { console.log("script start") if (await doesNotHaveInProgressRelease(github) && await isWorkingBranchAhead(github)) { await startRelease(github) @@ -18,6 +18,11 @@ export const script = async ({ github, context, core }) => { return "" } +export const publishRelease = async (github, artifact) => { + +} + + const isWorkingBranchAhead = async (github) => { const result = await github.rest.repos.compareCommitsWithBasehead({ owner: config.owner,