feat: Group posts by post type, improve settings. #25
Workflow file for this run
This file contains 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: Create production release | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
PHP_VERSION: 8.0 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📄 Clone repository | |
uses: actions/checkout@v4 | |
- name: ⚙️ Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: ⬇ Install npm dependencies | |
run: | | |
npm ci | |
- name: 📦 Build the plugin | |
run: | | |
npm run build | |
- name: 🚀 Deploy to WordPress directory | |
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: vo-html-sitemap | |
- name: 🚀 Create a new release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{ steps.deploy.outputs.zip_file }} | |
generateReleaseNotes: true |