fix: include uninstall.php in plugin zip #10
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 🛠️ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- run: npm ci --production | |
- run: npm run build | |
- name: 🐘 Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
- name: 📥 Install PHP dependencies | |
uses: ramsey/composer-install@v2 | |
with: | |
composer-options: "--no-dev --ignore-platform-reqs --classmap-authoritative" | |
- name: 📦 Generate zip | |
run: npm run plugin-zip && cp .zip ${{ github.event.repository.name }}.zip | |
- name: 📢 Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ github.event.repository.name }}.zip | |
generate_release_notes: true |