mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Build for iOS
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tag:
|
|
description: "tag"
|
|
required: false
|
|
default: ""
|
|
type: string
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-macos-app:
|
|
name: Release IOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
flutter-version-file: pubspec.yaml
|
|
|
|
- name: Set and Extract version
|
|
shell: pwsh
|
|
run: lib/scripts/build.ps1
|
|
|
|
- name: Build iOS
|
|
run: |
|
|
flutter build ios --release --no-codesign --dart-define-from-file=pili_release.json
|
|
ln -sf ./build/ios/iphoneos Payload
|
|
zip -r9 PiliPlus_ios_${{env.version}}.ipa Payload/runner.app
|
|
|
|
- name: Release
|
|
if: ${{ github.event.inputs.tag != '' }}
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ github.event.inputs.tag }}
|
|
name: ${{ github.event.inputs.tag }}
|
|
files: |
|
|
PiliPlus_ios_*.ipa
|
|
|
|
- name: Upload ios release
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: iOS-release
|
|
path: PiliPlus_ios_*.ipa
|