diff --git a/.github/workflows/build.yml b/.github/workflows/main.yml similarity index 62% rename from .github/workflows/build.yml rename to .github/workflows/main.yml index d801961..cab4670 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/main.yml @@ -16,18 +16,26 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest + defaults: + run: + working-directory: src # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v2 with: java-version: '12.x' + distribution: 'zulu' - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: - channel: 'stable' + flutter-version: '3.3.3' - run: flutter pub get - - run: flutter build apk + - run: flutter build apk --flavor prod + - name: Github Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags') + with: + files: src/app/build/outputs/apk/release/app-prod-release.apk diff --git a/README.md b/README.md index b3634ea..cee813f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # mucke -![Test](https://github.com/moritz-weber/mucke/workflows/Test/badge.svg) -[![Coverage](https://coveralls.io/repos/github/moritz-weber/mucke/badge.svg?branch=master)](https://coveralls.io/github/moritz-weber/mucke?branch=master) ![Build](https://github.com/moritz-weber/mucke/workflows/Build/badge.svg) A simple Android music player with extras.