Skip to content

Commit

Permalink
added apk release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshit2756 committed Dec 1, 2024
1 parent 26395b5 commit ca2815c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Build & Release"
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master

permissions:
contents: write

jobs:
build:
name: Build & Release
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- uses: actions/setup-java@v2
with:
java-version: "17.x"
java-package: jdk
architecture: x64
check-latest: false
server-id: github
server-username: ${{ github.actor }}
server-password: ${{ secrets.GITHUB_TOKEN }}
overwrite-settings: true
job-status: success
distribution: "temurin" # Added distribution input
- 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.GITHUB_TOKEN }}

0 comments on commit ca2815c

Please sign in to comment.