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: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| name: Deploy to WordPress.org | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: production | |
| url: https://wordpress.org/plugins/rich-taxonomy/ | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.1 | |
| tools: composer | |
| - name: Setup Node.JS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.node-version' | |
| - name: Install dependencies and build Assets | |
| run: | | |
| composer install --no-dev --prefer-dist | |
| npm ci --ignore-scripts | |
| npm run package | |
| - name: Generate readme.txt | |
| uses: tarosky/workflows/actions/wp-readme@main | |
| - name: Versioning | |
| uses: tarosky/workflows/actions/versioning@main | |
| with: | |
| version: ${{ github.event.release.tag_name }} | |
| files: readme.txt,rich-taxonomy.php | |
| - name: Deploy to WordPress Directory | |
| uses: 10up/action-wordpress-plugin-deploy@stable | |
| with: | |
| generate-zip: true | |
| env: | |
| SVN_USERNAME: ${{ secrets.WP_ORG_USERNAME_TAROSKY }} | |
| SVN_PASSWORD: ${{ secrets.WP_ORG_PASSWORD_TAROSKY }} | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip |