Skip to content

use node-version: '14' #155

use node-version: '14'

use node-version: '14' #155

Workflow file for this run

name: Build/android
on:
push:
branches:
- master
- "android-ci"
tags:
- '*'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04 ]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: '2.7' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install node
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Make key file
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
CORDOVA_BUILD_CONFIG: ${{ secrets.CORDOVA_BUILD_CONFIG }}
run: |
echo "creating keystore"
ls -lah
mkdir keys
echo "$RELEASE_KEYSTORE" > keys/quasar-release-key.jks.asc
echo "$CORDOVA_BUILD_CONFIG" > build.cordova.json
echo "finishing creating keystore"
find keys
echo "decode passphrase"
gpg -d --passphrase "$RELEASE_KEYSTORE_PASSPHRASE" --batch keys/quasar-release-key.jks.asc > keys/quasar-release-key.jks
echo "finishing decoding passphrase"
- name: Use oxr463/setup-cordova
uses: oxr463/[email protected]
with:
exec: |
chmod -R 0777 /opt/android-sdk-linux
npm install -g @quasar/cli
npm install
npm run build-android
find . | grep apk
mv dist/cordova/android/apk/release/app-release.apk dist/cordova/android/apk/release/dadadash-app.apk
- uses: actions/upload-artifact@v4
with:
name: dadadash-app.apk
path: dist/cordova/android/apk/release/dadadash-app.apk
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
dist/cordova/android/apk/release/dadadash-app.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}