Skip to content

Commit 71d902b

Browse files
committed
feat: add workflow dispatch input for release version and create GitHub release job to upload artifacts
1 parent b14c936 commit 71d902b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/mobile-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build Mobile Apps
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version (e.g. v1.1.0)'
8+
required: true
59

610
permissions:
711
contents: write
@@ -110,3 +114,31 @@ jobs:
110114
with:
111115
name: OmniPizza-iOS-Simulator
112116
path: frontend-mobile/ios/build/Build/Products/Release-iphonesimulator/OmniPizza-Simulator.zip
117+
118+
release:
119+
name: Create GitHub Release
120+
needs: [build-android, build-ios]
121+
runs-on: ubuntu-latest
122+
123+
steps:
124+
- name: Download Android Artifact
125+
uses: actions/download-artifact@v4
126+
with:
127+
name: OmniPizza-Android
128+
path: artifacts/android
129+
130+
- name: Download iOS Artifact
131+
uses: actions/download-artifact@v4
132+
with:
133+
name: OmniPizza-iOS-Simulator
134+
path: artifacts/ios
135+
136+
- name: Create Release and Upload Assets
137+
uses: softprops/action-gh-release@v2
138+
with:
139+
tag_name: ${{ github.event.inputs.version }}
140+
name: OmniPizza ${{ github.event.inputs.version }}
141+
generate_release_notes: true
142+
files: |
143+
artifacts/android/app-release.apk
144+
artifacts/ios/OmniPizza-Simulator.zip

0 commit comments

Comments
 (0)