Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 0c1f07d

Browse files
committed
fix: enhance build workflow by adding JDK setup and GH release step
1 parent fc7cfc5 commit 0c1f07d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- feature/deploy
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -17,6 +20,12 @@ jobs:
1720
with:
1821
node-version: 20
1922

23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: 17
27+
distribution: temurin
28+
2029
- name: 🏗 Setup Bun
2130
uses: oven-sh/setup-bun@v2
2231

@@ -28,7 +37,16 @@ jobs:
2837
with:
2938
packager: bun
3039
eas-version: latest
40+
expo-version: 52
3141
token: ${{ secrets.EXPO_TOKEN }}
3242

3343
- name: 🚀 Build app
34-
run: eas build -p android -e production
44+
run: eas build --platform android --profile production --local --output ${{ github.workspace }}/app-release.apk
45+
46+
- name: GH Release
47+
uses: softprops/action-gh-release@v2
48+
with:
49+
name: gift-idea-tracker
50+
tag_name: 1.0.0
51+
files: |
52+
${{ github.workspace }}/app-release.apk

0 commit comments

Comments
 (0)