-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.35 KB
/
upload-release-apk.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
name: Upload Release APK asset
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: '@cp23pl1'
cache: yarn
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
- name: Build app
run: |
touch .env.local
echo "APP_VERSION=${{ github.ref_name }}" >> .env.local
eas build --platform android --local --output ./winwin_driver_${{ github.ref_name }}.apk
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./winwin_driver_${{ github.ref_name }}.apk
asset_name: winwin_driver_${{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive