Skip to content

Commit

Permalink
Added the signing to the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Jul 9, 2022
1 parent aa71ec1 commit 430d435
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/releaseCordova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
os: ubuntu-18.04

runs-on: ${{ matrix.os }}
environment: nightly

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -76,9 +77,17 @@ jobs:
if: contains(matrix.runtime, 'x64')
uses: android-actions/[email protected]

- 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
Expand Down

0 comments on commit 430d435

Please sign in to comment.