|
172 | 172 | name: macos_outputs |
173 | 173 | path: oneAnime_macos_*.dmg |
174 | 174 |
|
175 | | - flutter-build-ios: |
176 | | - name: "Release for iOS" |
177 | | - runs-on: "macos-latest" |
178 | | - permissions: write-all |
179 | | - |
180 | | - steps: |
181 | | - - name: Clone repository |
182 | | - uses: actions/checkout@v4 |
183 | | - - name: Extract tag name |
184 | | - run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV |
185 | | - - name: Echo build progress |
186 | | - run: echo "oneAnime_ios_${{ env.tag }}.ipa build progress" |
187 | | - - name: Set up Flutter |
188 | | - uses: subosito/flutter-action@v2 |
189 | | - with: |
190 | | - channel: stable |
191 | | - flutter-version-file: pubspec.yaml |
192 | | - - run: flutter pub get |
193 | | - - name: Build IPA |
194 | | - run: | |
195 | | - flutter build ios --release --no-codesign |
196 | | - - name: Create IPA |
197 | | - run: | |
198 | | - mkdir build/ios/iphoneos/Payload |
199 | | - cp -R build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/Runner.app |
200 | | - zip -q -r oneAnime_ios_${{ env.tag }}_no_sign.ipa build/ios/iphoneos/Payload |
201 | | - - name: Upload iOS build |
202 | | - uses: actions/upload-artifact@v4 |
203 | | - with: |
204 | | - name: ios_outputs |
205 | | - path: oneAnime_ios_*.ipa |
206 | | - |
207 | 175 | release: |
208 | 176 | name: "Release" |
209 | 177 | runs-on: "ubuntu-latest" |
210 | | - needs: [flutter-build-windows, flutter-build-android, flutter-build-linux, flutter-build-macos, flutter-build-ios] |
| 178 | + needs: [flutter-build-windows, flutter-build-android, flutter-build-linux, flutter-build-macos] |
211 | 179 | permissions: write-all |
212 | 180 | steps: |
213 | 181 | - name: Clone repository |
|
254 | 222 | - name: Copy macos build file to root |
255 | 223 | run: cp macos_outputs/* oneAnime_macos_${{ env.tag }}.dmg |
256 | 224 |
|
257 | | - - name: Download iOS build file |
258 | | - uses: actions/download-artifact@v4 |
259 | | - with: |
260 | | - name: ios_outputs |
261 | | - path: ios_outputs |
262 | | - - name: List files in ios_outputs directory |
263 | | - run: ls -l ios_outputs |
264 | | - - name: Copy ios build file to root |
265 | | - run: cp ios_outputs/* oneAnime_ios_${{ env.tag }}_no_sign.ipa |
266 | | - |
267 | 225 | - name: Download android build file |
268 | 226 | uses: actions/download-artifact@v4 |
269 | 227 | with: |
|
0 commit comments