Use file not raw binary
Some checks failed
Build & Release WordPress Plugin / build (push) Failing after 36s
Some checks failed
Build & Release WordPress Plugin / build (push) Failing after 36s
This commit is contained in:
parent
ad1212df4c
commit
c25710e4bd
1 changed files with 4 additions and 3 deletions
|
@ -87,7 +87,8 @@ jobs:
|
|||
| jq -r '.id')
|
||||
|
||||
# Pushes he zip file to be shown in the "Releases" tab under this release.
|
||||
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${PLUGIN_NAME}.zip" \
|
||||
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets" \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
--data-binary "@build/${PLUGIN_NAME}.zip"
|
||||
-F "name=${PLUGIN_NAME}.zip" \
|
||||
-F "attachment=@build/${PLUGIN_NAME}.zip"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue