From 977e1bec0ba7ebf2e275c8ee0162347e530a0787 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 21 Feb 2022 11:49:05 +0500 Subject: [PATCH] ci: auto publish to streetwriters/notesnook --- .../workflows/android-public-release.yml | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/apps/mobile/.github/workflows/android-public-release.yml b/apps/mobile/.github/workflows/android-public-release.yml index 946c599a0..38a0b6e59 100644 --- a/apps/mobile/.github/workflows/android-public-release.yml +++ b/apps/mobile/.github/workflows/android-public-release.yml @@ -44,8 +44,27 @@ jobs: keyStorePassword: ${{ secrets.PUBLIC_KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.PUBLIC_KEY_PASSWORD }} - - name: Upload Artifact - uses: actions/upload-artifact@v2 + - uses: jungwinter/split@v1 + id: signed_files with: - name: Signed App Bundle - path: ${{steps.sign_app.outputs.signedReleaseFile}} + msg: ${{ steps.sign_app.signedReleaseFiles }} + separator: ':' + + - name: Get version + id: package-version + uses: martinbeentjes/npm-get-version-action@master + + - name: Publish + uses: softprops/action-gh-release@v1 + with: + draft: true + tag_name: ${{ steps.package-version.outputs.current-version}}-android + name: ${{ steps.package-version.outputs.current-version}}-Android + repository: streetwriters/notesnook + token: ${{ secrets.NOTESNOOK_GH_TOKEN }} + files: | + ${{ steps.signed_files._0 }} + ${{ steps.signed_files._1 }} + ${{ steps.signed_files._2 }} + ${{ steps.signed_files._3 }} + ${{ steps.signed_files._4 }}