Skip to content

Commit

Permalink
Fix releases build not automating (#7)
Browse files Browse the repository at this point in the history
* 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
thecodepapaya authored Jan 23, 2021
1 parent 05031cf commit b924ca3
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/main.yml
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
Expand All @@ -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 }}

0 comments on commit b924ca3

Please sign in to comment.