From 4d8c5d10e330ed261b858b9687579d503069728c Mon Sep 17 00:00:00 2001 From: Dean Oakley Date: Thu, 16 Jul 2026 15:04:16 +1000 Subject: [PATCH 1/3] Add safe WordPress.org deployment dry run --- .github/workflows/deploy-wordpress.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-wordpress.yml b/.github/workflows/deploy-wordpress.yml index e62e682..3e509d1 100644 --- a/.github/workflows/deploy-wordpress.yml +++ b/.github/workflows/deploy-wordpress.yml @@ -1,6 +1,8 @@ name: Deploy to WordPress.org on: + pull_request: + workflow_dispatch: push: tags: - "*" @@ -10,14 +12,16 @@ permissions: jobs: deploy: - name: Deploy tagged release + name: Validate or deploy plugin runs-on: ubuntu-latest steps: - name: Check out plugin uses: actions/checkout@v4 - - name: Deploy to WordPress.org + - name: Validate or deploy to WordPress.org uses: 10up/action-wordpress-plugin-deploy@stable + with: + dry-run: ${{ github.event_name != 'push' }} env: - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ github.event_name == 'push' && secrets.SVN_USERNAME || '' }} + SVN_PASSWORD: ${{ github.event_name == 'push' && secrets.SVN_PASSWORD || '' }} From 0ca9e17cfe9ae21473c1ad5bebe13d3bb8438fdc Mon Sep 17 00:00:00 2001 From: Dean Oakley Date: Thu, 16 Jul 2026 15:05:23 +1000 Subject: [PATCH 2/3] Allow dry run to use SVN credentials --- .github/workflows/deploy-wordpress.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-wordpress.yml b/.github/workflows/deploy-wordpress.yml index 3e509d1..5f7d481 100644 --- a/.github/workflows/deploy-wordpress.yml +++ b/.github/workflows/deploy-wordpress.yml @@ -23,5 +23,5 @@ jobs: with: dry-run: ${{ github.event_name != 'push' }} env: - SVN_USERNAME: ${{ github.event_name == 'push' && secrets.SVN_USERNAME || '' }} - SVN_PASSWORD: ${{ github.event_name == 'push' && secrets.SVN_PASSWORD || '' }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} From fd5892b314409aff9b52dacaf83cfeea1581459b Mon Sep 17 00:00:00 2001 From: Dean Oakley Date: Thu, 16 Jul 2026 15:06:24 +1000 Subject: [PATCH 3/3] Use a safe version name for deployment dry runs --- .github/workflows/deploy-wordpress.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-wordpress.yml b/.github/workflows/deploy-wordpress.yml index 5f7d481..a909429 100644 --- a/.github/workflows/deploy-wordpress.yml +++ b/.github/workflows/deploy-wordpress.yml @@ -23,5 +23,6 @@ jobs: with: dry-run: ${{ github.event_name != 'push' }} env: + VERSION: ${{ github.event_name == 'push' && github.ref_name || '3.0.9-test' }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}