diff --git a/.github/workflows/always.yml b/.github/workflows/always.yml index de41565..5e11ab3 100644 --- a/.github/workflows/always.yml +++ b/.github/workflows/always.yml @@ -2,15 +2,13 @@ name: build dev apk on: push: jobs: - build-gradle-project: + build-debug-apk: runs-on: ubuntu-latest steps: - name: checkout project sources uses: actions/checkout@v3 with: lfs: true - - name: setup gradle - uses: gradle/gradle-build-action@v2 - run: ./gradlew assembleDebug - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7ff0e59 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: build and release apk +on: + push: + tags: + - '*' +jobs: + make-release: + runs-on: ubuntu-latest + steps: + - uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + build-release-apk: + runs-on: ubuntu-latest + steps: + - name: checkout project sources + uses: actions/checkout@v3 + with: + lfs: true + - run: ./gradlew assembleRelease + - uses: AButler/upload-release-assets@v2.0 + with: + files: app/build/outputs/apk/release/*.apk + repo-token: ${{ secrets.GITHUB_TOKEN }} + release-tag: ${{ github.ref_name }}