Skip to content

Commit

Permalink
Create cI_cd_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
032AbhishekChoksi committed Apr 14, 2024
1 parent a6f7d0b commit 0d46ff2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cI_cd_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
pull_request:
branches:
- master
push:
branches:
- master
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '12'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64

- run: flutter build apk --release --split-per-abi
- run: |
flutter build ios --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*,build/ios/iphoneos/app.ipa"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}

0 comments on commit 0d46ff2

Please sign in to comment.