From 430d43513b29e959c2aaf4b2c5e2adab41cde8f1 Mon Sep 17 00:00:00 2001 From: MarmadileManteater Date: Sat, 9 Jul 2022 11:56:34 -0400 Subject: [PATCH] Added the signing to the release workflow --- .github/workflows/releaseCordova.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/releaseCordova.yml b/.github/workflows/releaseCordova.yml index 00c617f265192..e2c3ad81a5539 100644 --- a/.github/workflows/releaseCordova.yml +++ b/.github/workflows/releaseCordova.yml @@ -17,6 +17,7 @@ jobs: os: ubuntu-18.04 runs-on: ${{ matrix.os }} + environment: nightly steps: - uses: actions/checkout@v2 @@ -76,9 +77,17 @@ jobs: if: contains(matrix.runtime, 'x64') uses: android-actions/setup-android@v2.0.2 + - name: Fetch keystore from secrets + run: | + while read -r line; + do + echo "${line}" >> freetube.keystore.asc + done <<< '${{ secrets.KEYSTORE }}' + gpg -d --passphrase '${{ secrets.KEYSTORE_PASSWORD }}' --batch freetube.keystore.asc >> freetube.keystore + - name: Build APK with Cordova with Node.js ${{ matrix.node-version}} if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64') - run: npm run build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk + run: npm run build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk cordova ./freetube.keystore ${{ secrets.KEYSTORE_PASSWORD }} - name: Upload Cordova APK Artifact uses: actions/upload-artifact@v2