diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89e3c1d..109bd4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,10 +2,6 @@ name: Flutter Build and Upload on: push: - branches: - - 'main' - - 'build/*' - - 'feature/*' paths-ignore: - '**.md' @@ -52,12 +48,14 @@ jobs: name: android-app path: build/app/outputs/flutter-apk/app-release.apk - # - name: Release - # uses: "marvinpinto/action-automatic-releases@latest" - # if: github.ref == 'refs/heads/main' - # with: - # repo_token: "${{ secrets.GITHUB_TOKEN }}" - # automatic_release_tag: "latest" - # prerelease: false - # title: "NocoDB Mobile (Unofficial prototype)" - # files: "build/app/outputs/flutter-apk/app-release.apk" + release: + if: startsWith(github.ref, 'refs/tags/24') + needs: + - build + runs-on: ubuntu-latest + steps: + - name: Create release + uses: softprops/action-gh-release@v2 + with: + files: "build/app/outputs/flutter-apk/app-release.apk" + prerelease: ${{ contains(github.ref, 'dev') }}