Compare commits
No commits in common. "main" and "v0.0.3" have entirely different histories.
2 changed files with 4 additions and 13 deletions
|
@ -87,8 +87,7 @@ jobs:
|
||||||
| jq -r '.id')
|
| jq -r '.id')
|
||||||
|
|
||||||
# Pushes he zip file to be shown in the "Releases" tab under this release.
|
# 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" \
|
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${PLUGIN_NAME}.zip" \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||||
-F "name=${PLUGIN_NAME}.zip" \
|
-H "Content-Type: application/zip" \
|
||||||
-F "attachment=@${PLUGIN_NAME}.zip"
|
--data-binary "@build/${PLUGIN_NAME}.zip"
|
||||||
|
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,11 +1,3 @@
|
||||||
# workflow-sample-wordpress-plugin
|
# 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.
|
|
Loading…
Add table
Add a link
Reference in a new issue