Dry run to test automate process #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy and Release Plugin to WP.org | ||
| on: | ||
| push: | ||
| branches: | ||
| - chore/automate-release-process # change to your default branch if needed | ||
| jobs: | ||
| releaseToWPOrg: | ||
| name: Release to WordPress.org | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Install SVN ( Subversion ) | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install subversion | ||
| - name: 🔒 Dry run enabled — skipping deploy to WordPress.org | ||
| run: echo "Dry run mode: not deploying to WordPress.org" | ||
| - name: WordPress Plugin Deploy | ||
| id: deploy | ||
| uses: 10up/action-wordpress-plugin-deploy@stable | ||
| with: | ||
| generate-zip: true | ||
| env: | ||
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
| SLUG: dokan-invoice | ||
| - name: Create GitHub release | ||
| if: false # Change to `true` to enable real GitHub release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| files: ${{steps.deploy.outputs.zip-path}} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||