1 parent 957a725 commit a1ef1f5Copy full SHA for a1ef1f5
1 file changed
.github/workflows/appstore-build-publish.yml
@@ -82,10 +82,13 @@ jobs:
82
83
- name: Publish to Nextcloud App Store
84
run: |
85
- curl -s -X POST \
+ TARBALL_NAME="${APP_NAME}.tar.gz"
86
+ DOWNLOAD_URL=$(gh release view "${{ github.event.release.tag_name }}" --json assets -q ".assets[] | select(.name == \"${TARBALL_NAME}\") | .url")
87
+ echo "Publishing ${DOWNLOAD_URL}"
88
+ curl -sf -X POST \
89
-H "Authorization: Token ${{ secrets.APPSTORE_TOKEN }}" \
90
-H "Content-Type: application/json" \
- -d "{\"download\": \"$(gh release view ${{ github.event.release.tag_name }} --json assets --jq '.assets[] | select(.name == \"${APP_NAME}.tar.gz\") | .url')\"}" \
91
+ -d "{\"download\": \"${DOWNLOAD_URL}\"}" \
92
https://apps.nextcloud.com/api/v1/apps/releases
93
env:
94
GH_TOKEN: ${{ github.token }}
0 commit comments