From df3fbe2072d8ac762cf9a1a9b0bf1c92029b875f Mon Sep 17 00:00:00 2001 From: Xtr126 Date: Wed, 21 Feb 2024 12:12:18 +0530 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 537a4cd1..fae6206a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,12 +2,19 @@ name: Build and Release APK on: workflow_dispatch: - + push: + paths: + - '**.yml' + jobs: + build-docs: + uses: ./.github/workflows/build-docs.yml + build: - + needs: + - build-docs + runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 @@ -33,10 +40,18 @@ jobs: echo '${{ secrets.KEYSTORE }}' | base64 -d > keystore.jks fi + - name: Download artifacts + uses: actions/download-artifact@v4 + + - name: Move artifact to assets + run: | + mkdir ./app/src/main/assets + mv ./github-pages ./app/src/main/assets/XtMapper-docs + - name: Build with Gradle run: ./gradlew assembleRelease - - name: release + - name: Release uses: softprops/action-gh-release@v1 with: files: |