-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (42 loc) · 1.34 KB
/
release.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
name: Release Workflow
on:
release:
types:
- created
concurrency:
group: release_workflow
cancel-in-progress: true
jobs:
build-android:
runs-on: ubuntu-latest
environment: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Get tag
id: tag
run: echo "::set-output name=tag::`git describe --tags`"
- name: Install dependencies
run: npm ci
- uses: szenius/[email protected]
with:
timezoneLinux: 'Europe/Paris'
timezoneMacos: 'Europe/Paris'
- name: add keys
run: |
mkdir -p android/keystores
echo "${{ secrets.KEYSTORE_PROPERTIES_64 }}" | base64 -d > android/keystores/release.keystore.properties
echo "${{ secrets.JKS_64 }}" | base64 -d > android/app/application-amicale.jks
- name: build
run: npm run apk
- name: Upload to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: android/app/build/outputs/apk/release/app-release.apk
asset_name: campus-${{steps.tag.outputs.tag}}.apk
asset_content_type: application/vnd.android.package-archive