-
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.
Fix releases build not automating (#7)
* Replace release action with ncipollo's version * Update triggers for build to work on all branches * changed token * Make build only for PR to release branch
- Loading branch information
1 parent
05031cf
commit b924ca3
Showing
1 changed file
with
8 additions
and
17 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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
name: Test, Build and Release apk | ||
name: Build and Release apk | ||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ dev ] | ||
branches: [ release ] | ||
jobs: | ||
build: | ||
name: Build APK | ||
|
@@ -18,17 +16,10 @@ jobs: | |
flutter-version: 1.25.0-8.3.pre | ||
channel: beta | ||
- run: flutter pub get | ||
# - run: flutter test | ||
- run: flutter build apk | ||
- name: Push APK to Releases | ||
- uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
tag_name: v0.0.${{ github.run_number }} | ||
release_name: Release ${{ github.ref }} | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# artifacts: "build/app/outputs/flutter-apk/app-release.apk" | ||
# token: ${{ secrets.TOKEN }} | ||
# tag: v0.0.${{ github.run_number }} | ||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "build/app/outputs/flutter-apk/app-release.apk" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: v0.0.${{ github.run_number }} |