Skip to content

Commit

Permalink
Create ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfuertes authored Apr 21, 2022
1 parent 3e9264f commit 93dda30
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This is a basic workflow to help you get started with Actions

name: ios

# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Install and set Flutter version
uses: subosito/flutter-action@v2.3.0
#with:
# flutter-version: '2.5'

- name: Restore packages
working-directory: ./flutter_app
run: flutter pub get

- name: Build Flutter
working-directory: ./flutter_app
run: flutter build ios --release --no-codesign

- name: Make "Payload" Folder
working-directory: ./flutter_app/build/ios/iphoneos
run: mkdir Payload

- name: Copy runner.app into "Payload" Folder
working-directory: ./flutter_app/build/ios/iphoneos
run: cp -R ./runner.app ./Payload/

#- name: Install Zip
# uses: montudor/action-zip@v1.0.0

- name: Generate ZIP/IPA file
working-directory: ./flutter_app/build/ios/iphoneos
run: zip -r ./csbook.ipa ./Payload

- name: Upload the artifacts
uses: actions/upload-artifact@v3.0.0
with:
# Artifact name
name: release-ios
# Destination path
path: ./flutter_app/build/ios/iphoneos/*.ipa



0 comments on commit 93dda30

Please sign in to comment.