From 018fcc18b0b6408528ffc535da91ff5c8c90e361 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 21 Jul 2026 09:22:29 +0200 Subject: [PATCH 1/4] Pass version explicitly to the release GH action --- .github/workflows/deploy-to-wp-org.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-to-wp-org.yml b/.github/workflows/deploy-to-wp-org.yml index 94c4bc7e8..94658c6f1 100644 --- a/.github/workflows/deploy-to-wp-org.yml +++ b/.github/workflows/deploy-to-wp-org.yml @@ -78,15 +78,21 @@ jobs: - name: Prepare build directory run: npx grunt prepare + # Read once so both the tag check and the deploy step use the exact same value, rather + # than letting the deploy action derive its own version from GITHUB_REF - that only works + # when triggered from a tag push, and yields a bogus value like "refs/heads/master" (which + # SVN then can't use as a tag path) on a workflow_dispatch run against a branch. + - name: Read plugin version + run: echo "PLUGIN_VERSION=$(cat .version | tr -d '[:space:]')" >> "$GITHUB_ENV" + # Ensure the version in the .version file matches the tag of the release. # Skipped for manual runs, which may not be run against a release tag. - name: Verify version matches tag if: github.event_name == 'release' run: | TAG="${GITHUB_REF_NAME#v}" - FILE_VERSION=$(cat .version | tr -d '[:space:]') - if [ "$TAG" != "$FILE_VERSION" ]; then - echo "::error::Tag $TAG does not match .version $FILE_VERSION" + if [ "$TAG" != "$PLUGIN_VERSION" ]; then + echo "::error::Tag $TAG does not match .version $PLUGIN_VERSION" exit 1 fi @@ -102,6 +108,7 @@ jobs: env: BUILD_DIR: 'build' SLUG: 'cloudinary-image-management-and-manipulation-in-the-cloud-cdn' + VERSION: ${{ env.PLUGIN_VERSION }} # Use secrets to authenticate with WP.org. SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} From b7661db79ba9af57da8fe44024ae7770d68962b7 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 21 Jul 2026 13:48:26 +0200 Subject: [PATCH 2/4] New version to test release process --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index 0163af7e8..b845da338 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.3.5 \ No newline at end of file +3.3.6-dev \ No newline at end of file From e9a5ed4efda5634ce5610619dcef48f9ecf14be5 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 21 Jul 2026 14:10:01 +0200 Subject: [PATCH 3/4] Make zip downloadable from artifacts panel --- .github/workflows/deploy-to-wp-org.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy-to-wp-org.yml b/.github/workflows/deploy-to-wp-org.yml index 94658c6f1..805d5e766 100644 --- a/.github/workflows/deploy-to-wp-org.yml +++ b/.github/workflows/deploy-to-wp-org.yml @@ -113,6 +113,15 @@ jobs: SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + # Makes the zip downloadable from the run's Artifacts panel regardless of trigger, so + # manual/dry-run dispatches can be inspected without publishing a release. + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ env.PLUGIN_VERSION }}.zip + path: ${{ steps.deploy.outputs.zip-path }} + retention-days: 7 + - name: Upload release asset if: github.event_name == 'release' uses: softprops/action-gh-release@v2 From 0831eb031afcc30b2421e529a8333c291379f255 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Thu, 6 Aug 2026 11:32:33 +0200 Subject: [PATCH 4/4] Revert "New version to test release process" This reverts commit b7661db79ba9af57da8fe44024ae7770d68962b7. --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index b845da338..0163af7e8 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.3.6-dev \ No newline at end of file +3.3.5 \ No newline at end of file