From 361a2ee3d4ccfa87c7b68de072415ebd535b9e49 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Feb 2026 23:33:23 +0000 Subject: [PATCH] Fix WordPress.org deploy action: narrow tag trigger, fix dry-run input, update .distignore - Restrict tag pattern to version-like tags ([0-9]+.[0-9]+.[0-9]+) to prevent accidental deployments from non-release tags - Add type: boolean to dry-run workflow_dispatch input for proper checkbox UI and simplify the comparison expression - Add CLAUDE.md and .distignore to .distignore so dev-only files are excluded from the WordPress.org SVN deployment https://claude.ai/code/session_01DM75vWFtVxixaWhENsBT22 --- .distignore | 4 +++- .github/workflows/deploy.yml | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.distignore b/.distignore index bff4ad2..188fe7e 100644 --- a/.distignore +++ b/.distignore @@ -7,4 +7,6 @@ /phpunit.xml.dist /.git /.gitignore -/.gitattributes \ No newline at end of file +/.gitattributes +/.distignore +/CLAUDE.md \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1dab9d1..47c4ade 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,13 +3,14 @@ name: Deploy to WordPress.org on: push: tags: - - '*' + - '[0-9]+.[0-9]+.[0-9]+' workflow_dispatch: inputs: dry-run: description: 'Run as dry-run (no changes will be pushed)' required: false - default: 'true' + type: boolean + default: true jobs: deploy: @@ -22,7 +23,7 @@ jobs: - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@stable with: - dry-run: ${{ inputs['dry-run'] == 'true' }} + dry-run: ${{ inputs.dry-run }} env: SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}