Skip to content

Test release action with deployment #12#13

Merged
IgorCode merged 1 commit intomainfrom
12-add-release-action-with-deployment
Nov 11, 2025
Merged

Test release action with deployment #12#13
IgorCode merged 1 commit intomainfrom
12-add-release-action-with-deployment

Conversation

@IgorCode
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow to automate deployment to WordPress.org's plugin repository and create GitHub release assets when a new release is published.

Key changes:

  • Adds automated deployment workflow triggered on release publication
  • Configures WordPress.org SVN deployment with dry-run mode enabled
  • Includes automatic ZIP file generation and attachment to GitHub releases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +15 to +20
# # Optional: If your plugin is using composer dependencies, we want to include them
# # WITHOUT the dev dependencies.
# - name: Build
# run: |
# npm install
# npm run build
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is misleading. The commented build step runs npm commands, not composer. The project does have composer dev dependencies (phpstan) that should be excluded from production builds. Consider either removing this comment or updating it to accurately reflect that it's for npm/build assets, and add a separate step for composer production dependencies if needed using composer install --no-dev.

Suggested change
# # Optional: If your plugin is using composer dependencies, we want to include them
# # WITHOUT the dev dependencies.
# - name: Build
# run: |
# npm install
# npm run build
# # Optional: If your plugin is using npm (Node.js) build assets, run the build here.
# - name: Build assets
# run: |
# npm install
# npm run build
#
# # Optional: If your plugin is using composer dependencies, install them WITHOUT the dev dependencies.
# - name: Install Composer production dependencies
# run: composer install --no-dev --optimize-autoloader

Copilot uses AI. Check for mistakes.
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
dry-run: true
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dry-run: true flag means this workflow will not actually deploy to WordPress.org. For a production release workflow, this should be set to false. If this is intentional for testing purposes, consider adding a comment explaining why dry-run is enabled.

Suggested change
dry-run: true
dry-run: false

Copilot uses AI. Check for mistakes.
@IgorCode IgorCode changed the title Add release action with deployment #12 Test release action with deployment #12 Nov 11, 2025
@IgorCode IgorCode merged commit 86d25aa into main Nov 11, 2025
10 checks passed
@IgorCode IgorCode deleted the 12-add-release-action-with-deployment branch November 11, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants