Skip to content

Commit

Permalink
🧙‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanm08 committed Sep 23, 2021
1 parent 439d238 commit 1160a11
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build Apps
runs-on: ubuntu-latest
runs-on: macos-11
steps:
- name: Export Release Timestamp
run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%M.%S')" >> $GITHUB_ENV
Expand All @@ -26,16 +26,16 @@ jobs:
- name: Install pub Dependencies
run: flutter pub get
- name: Build Android App
run: flutter build apk
# - name: Build iOS App
# run: |
# flutter build ios --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload
run: flutter build apk --split-per-abi
- name: Build iOS App
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: Build Web App with auto renderer
run: |
flutter build web --web-renderer auto
Expand All @@ -51,18 +51,10 @@ jobs:
flutter build web --web-renderer canvaskit
cd build/web
zip -r web-app-canvaskit.zip .
- uses: actions/checkout@master
- name: send custom telegram message with apk
uses: appleboy/telegram-action@master
with:
to: -1001581018347
token: 2049450038:AAEsI1t58F4nrTK3XQ2rynImLBjPqc1xMms
document: build/app/outputs/apk/release/app-release.apk
# document: build/web/web-app-html.zip
- name: Release Apps
uses: ncipollo/release-action@v1
with:
tag: ${{ env.APP_VERSION }}
name: ${{ env.APP_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "build/app/outputs/apk/release/app-release.apk,build/ios/iphoneos/app.ipa,build/web/web-app-auto.zip,build/web/web-app-html.zip,build/web/web-app-canvaskit.zip"
artifacts: "build/app/outputs/apk/release/*.apk,build/ios/iphoneos/app.ipa,build/web/web-app-auto.zip,build/web/web-app-html.zip,build/web/web-app-canvaskit.zip"

0 comments on commit 1160a11

Please sign in to comment.