Compare commits

..

2 commits
v0.0.4 ... main

Author SHA1 Message Date
j
9f9d7c58bb Mention about content-type 2025-06-17 16:29:42 +10:00
j
e295fcbfb3 Remove build from plugin upload
All checks were successful
Build & Release WordPress Plugin / build (push) Successful in 22s
2025-06-17 16:26:58 +10:00
2 changed files with 10 additions and 2 deletions

View file

@ -90,5 +90,5 @@ jobs:
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets" \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-F "name=${PLUGIN_NAME}.zip" \
-F "attachment=@build/${PLUGIN_NAME}.zip"
-F "attachment=@${PLUGIN_NAME}.zip"

View file

@ -1,3 +1,11 @@
# workflow-sample-wordpress-plugin
A sample workflow that demonstrates how I prefer to store my Wordpress plugins in a repository, and how to publish them to "releases".
A sample workflow that demonstrates how I prefer to store my Wordpress plugins in a repository, and how to publish them to "releases".
Wordpress code is just some ChatGPT sample I asked it to generate. Tested and
the zip is dumpable.
Worth noting that the way we upload the Zip may not work for Github. Forgejo
requires a multipart/form-data content type where-as Github may require binary.
I'm not 100% sure because I don't use Github much at the moment. If you're
downloading corrupt zips though, this is probably why.