diff --git a/.forgejo/workflows/wordpress-plugin.yml b/.forgejo/workflows/wordpress-plugin.yml index f6ac5ec..52d89ec 100644 --- a/.forgejo/workflows/wordpress-plugin.yml +++ b/.forgejo/workflows/wordpress-plugin.yml @@ -34,7 +34,7 @@ jobs: - name: Prepare Build Environment run: | - apt update && apt -y install zip unzip nodejs curl jq + apt update && apt -y install zip nodejs curl jq - name: Checkout repo uses: actions/checkout@v4 @@ -53,7 +53,6 @@ jobs: cd build zip -r "../${PLUGIN_NAME}.zip" "${PLUGIN_NAME}" cd - - unzip -l "${PLUGIN_NAME}.zip" - name: Create Release if not exists run: | @@ -87,8 +86,7 @@ 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" \ + curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${PLUGIN_NAME}.zip" \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ - -F "name=${PLUGIN_NAME}.zip" \ - -F "attachment=@build/${PLUGIN_NAME}.zip" - + -H "Content-Type: application/zip" \ + --data-binary "@build/${PLUGIN_NAME}.zip"