From eccd8a5c7ecafede29a816baba7e6e8ed762a026 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Fri, 23 Aug 2024 20:16:16 +0200 Subject: [PATCH] Test for the automatic deployment to nextcloud --- .github/workflows/release-workflows.yaml | 27 ++++++++++++++++++++++++ appinfo/info.xml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-workflows.yaml b/.github/workflows/release-workflows.yaml index 9ff51d69..a370d29f 100644 --- a/.github/workflows/release-workflows.yaml +++ b/.github/workflows/release-workflows.yaml @@ -6,6 +6,13 @@ jobs: release-management: runs-on: ubuntu-latest steps: + + - name: Set app env + run: | + # Split and keep last + echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV + echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV + # Step 1: Checkout the code - name: Checkout Code uses: actions/checkout@v3 @@ -147,3 +154,23 @@ jobs: opencatalogi-build.tar.gz token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.version.outputs.version }} + + - name: Attach tarball to github release + uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2 + id: attach_to_release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: nexcloud-release.tar.gz + asset_name: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}.tar.gz + tag: ${{ github.ref }} + overwrite: true + + - name: Upload app to Nextcloud appstore + uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1 + with: + app_name: ${{ env.APP_NAME }} + appstore_token: ${{ secrets.NEXTCLOUD_APPSTORE_TOKEN }} + download_url: ${{ steps.attach_to_release.outputs.browser_download_url }} + app_private_key: ${{ secrets.NEXTCLOUD_SIGNING_KEY }} + + diff --git a/appinfo/info.xml b/appinfo/info.xml index 72b17480..e9099ed3 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenCatalogi/.github/issues/new/choose) Create a [feature request](https://github.com/OpenCatalogi/.github/issues/new/choose) ]]> - 0.6.4 + 0.6.5 agpl Conduction Acato