From add513b95b07591981a2c58222f855b1533fc84a Mon Sep 17 00:00:00 2001 From: Pierre Kisters Date: Wed, 28 Jul 2021 00:20:29 +0200 Subject: [PATCH] add release workflow --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..93cd65b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: release + +on: + release: + types: [ published ] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2.1.0 + with: + distribution: 'adopt' + java-version: '11' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew assemble + - uses: actions/upload-artifact@v2 + with: + path: 'app/build/outputs/apk/release/app-release-unsigned.apk' + - uses: AButler/upload-release-assets@v2.0 + with: + files: 'app/build/outputs/apk/release/app-release-unsigned.apk' + repo-token: ${{ secrets.GITHUB_TOKEN }}