-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,12 @@ jobs: | |
- name: Build iOS App | ||
run: flutter build ios --release --no-codesign | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios-build | ||
path: build/ios/iphoneos/Runner.app | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
@@ -35,10 +41,20 @@ jobs: | |
name: ios-build | ||
path: build/ios | ||
|
||
- name: Set up Git | ||
run: git config --global user.email "[email protected]" && git config --global user.name "GitHub Actions" | ||
|
||
- name: Create Release | ||
run: | | ||
TAG_NAME="v${{ github.run_number }}" | ||
gh release create $TAG_NAME ./build/ios/Runner.app --title "iOS App Release" --notes "This is an automated release, triggered by a recent push. This may or may not be stable, so please have a look at the stable release(s)." | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.run_number }} | ||
release_name: Release ${{ github.run_number }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./build/ios/iphoneos/Runner.app.zip | ||
asset_name: ios-app.zip | ||
asset_content_type: application/zip |