Actualizar la configuración de PHP en el flujo de trabajo de desplieg… #13
Workflow file for this run
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 to WordPress.org | |
| on: | |
| push: | |
| tags: | |
| - "*" # Ejecuta el deploy en cualquier nuevo tag | |
| jobs: | |
| deploy: | |
| name: Deploy plugin | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.1" | |
| tools: composer | |
| - name: Install Composer dependencies | |
| run: composer install | |
| - name: Remove dev files | |
| run: | | |
| rm -rf node_modules | |
| rm -f prepros.config | |
| - name: ✅ Update readme.txt and assets in WordPress.org trunk | |
| uses: 10up/action-wordpress-plugin-asset-update@stable | |
| env: | |
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
| ASSETS_DIR: assets | |
| - name: 🚀 WordPress Plugin Deploy | |
| uses: 10up/action-wordpress-plugin-deploy@stable | |
| env: | |
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
| SLUG: qr-link-generator-for-wp |