-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action-quasar-android-build.yaml
57 lines (50 loc) · 1.73 KB
/
action-quasar-android-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Quasar Android Build and Release
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build-capacitor:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS Environment ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: yarn install && yarn global add @quasar/cli
- run: quasar build -m capacitor -T android --skip-pkg
- run: chmod +x ./src-capacitor/android/gradlew
- name: Gradle Android
uses: vgaidarji/[email protected]
with:
args: ./src-capacitor/android/gradlew --project-dir=./src-capacitor/android assembleDebug
- run: zip -r ../android-debug.zip ./src-capacitor/android/app/build/outputs/apk/debug/
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
body: Automated Deployment
draft: false
prerelease: false
- name: Upload a Release Asset
id: upload_release_asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./android-debug.zip
asset_name: android-debug.zip
asset_content_type: appliction/zip