Skip to content

Commit

Permalink
Merge pull request #222 from vechain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
qianbin authored May 18, 2021
2 parents a74b56b + 1ab50ad commit c6c19c4
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
DIST_TAG: preview
# DIST_TAG: preview

jobs:
create-gh-release:
Expand All @@ -24,7 +24,7 @@ jobs:
release_name: ${{ github.ref }}
draft: true

release:
release-electron:
needs: create-gh-release
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -71,3 +71,61 @@ jobs:
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}

release-android:
needs: create-gh-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '12'

- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'

- name: Install libs on ubuntu
run: sudo apt install -y libusb-1.0-0-dev libudev-dev

- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm install -g cordova@10 && npm ci

- name: Build
run: npx quasar build -m android

- uses: r0adkll/sign-android-release@v1
name: Sign APK
id: sign_app
with:
releaseDirectory: dist/cordova/android/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}

- name: Set up variable
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/v}

- name: Rename file
run: mv ${{steps.sign_app.outputs.signedReleaseFile}} dist/cordova/android/apk/release/Sync2-android-${{ steps.vars.outputs.tag }}.apk

- name: Upload released files
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/cordova/android/apk/release/Sync2-android-${{ steps.vars.outputs.tag }}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.vechain.sync2",
"version": "2.0.1",
"version": "2.0.2",
"description": "VeChain Sync2",
"productName": "Sync2",
"cordovaId": "org.vechain.sync2",
Expand Down

0 comments on commit c6c19c4

Please sign in to comment.