diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b23fc0e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release +on: + push: + tags: + - 'v*.*.*' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install + run: | + npm install + - name: Build + run: | + cd android + chmod +x ./gradlew + ./gradlew assembleRelease + # - name: Test + # run: | + # npm test + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + android/app/build/outputs/apk/release/app-arm64-v8a-release.apk + android/app/build/outputs/apk/release/app-universal-release.apk + android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk + android/app/build/outputs/apk/release/app-x86_64-release.apk + android/app/build/outputs/apk/release/app-x86-release.apk + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}