Skip to content

Commit c2e5d31

Browse files
committed
file upload specifier
1 parent 705212e commit c2e5d31

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed
+50-50
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
on:
2-
push:
3-
tags:
4-
- 'v*'
5-
workflow_dispatch:
2+
push:
3+
tags:
4+
- 'v*'
5+
workflow_dispatch:
66

77
name: Android Build
88

@@ -11,57 +11,57 @@ jobs:
1111
runs-on: self-hosted
1212
timeout-minutes: 30
1313
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1717

18-
- name: Read .nvmrc
19-
run: echo "##[set-output name=NVMRC;]$(cat ./client/.nvmrc)"
20-
id: nvm
18+
- name: Read .nvmrc
19+
run: echo "##[set-output name=NVMRC;]$(cat ./client/.nvmrc)"
20+
id: nvm
2121

22-
- name: Use Node.js (.nvmrc)
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: "${{ steps.nvm.outputs.NVMRC }}"
22+
- name: Use Node.js (.nvmrc)
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
2626

27-
- name: Install deps
28-
uses: borales/actions-yarn@v4
29-
with:
30-
cmd: install
31-
dir: 'client'
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.TOKEN_REPO}}
27+
- name: Install deps
28+
uses: borales/actions-yarn@v4
29+
with:
30+
cmd: install
31+
dir: 'client'
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.TOKEN_REPO}}
3434

35-
- name: Get Properties
36-
id: properties
37-
run: |
38-
cp "$HOME/android/local.properties" ./client/packages/android
39-
cp "$HOME/android/release.keystore" ./client/packages/android/app
35+
- name: Get Properties
36+
id: properties
37+
run: |
38+
cp "$HOME/android/local.properties" ./client/packages/android
39+
cp "$HOME/android/release.keystore" ./client/packages/android/app
4040
41-
- name: Set Up Rust
42-
uses: actions-rs/toolchain@v1
43-
with:
44-
toolchain: stable
45-
target: aarch64-linux-android
41+
- name: Set Up Rust
42+
uses: actions-rs/toolchain@v1
43+
with:
44+
toolchain: stable
45+
target: aarch64-linux-android
4646

47-
- name: Set Up Java
48-
uses: actions/setup-java@v4
49-
with:
50-
distribution: 'temurin'
51-
java-version: '17'
47+
- name: Set Up Java
48+
uses: actions/setup-java@v4
49+
with:
50+
distribution: 'temurin'
51+
java-version: '17'
5252

53-
- name: Build Android App
54-
uses: borales/actions-yarn@v4
55-
with:
56-
cmd: android:build:release
57-
dir: 'client'
58-
env:
59-
NDK_BIN: /Users/tmfmacmini/android/ndk/27.2.12479018/toolchains/llvm/prebuilt/darwin-x86_64/bin/
60-
#Update this version when upgrading the NDK version on the self-hosted machine
53+
- name: Build Android App
54+
uses: borales/actions-yarn@v4
55+
with:
56+
cmd: android:build:release
57+
dir: 'client'
58+
env:
59+
NDK_BIN: /Users/tmfmacmini/android/ndk/27.2.12479018/toolchains/llvm/prebuilt/darwin-x86_64/bin/
60+
#Update this version when upgrading the NDK version on the self-hosted machine
6161

62-
- name: Create the Artifact
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: Android_Build
66-
path: ./client/packages/android/app/build/outputs/apk/release/
67-
retention-days: 3
62+
- name: Create the Artifact
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: Android_Build
66+
path: ./client/packages/android/app/build/outputs/apk/release/*.apk
67+
retention-days: 3

0 commit comments

Comments
 (0)