forked from FreeTubeApp/FreeTube
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the signing to the release workflow
- Loading branch information
1 parent
aa71ec1
commit 430d435
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
|