Change from elastic to meilisearch and aurora api #328
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: Build Plugin ZIP | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
php-version: latest | |
extensions: imagick | |
key: rotaract-club-finder # an be any string, change to clear the extension cache. | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- name: Install Node.js dependencies | |
run: npm ci --production | |
- name: Setup cache environment | |
id: extcache | |
uses: shivammathur/cache-extensions@v1 | |
with: | |
php-version: ${{ env.php-version }} | |
extensions: ${{ env.extensions }} | |
key: ${{ env.key }} | |
- name: Cache extensions | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.extcache.outputs.dir }} | |
key: ${{ steps.extcache.outputs.key }} | |
restore-keys: ${{ steps.extcache.outputs.key }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.php-version }} | |
extensions: ${{ env.extensions }} | |
tools: wp | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Generate MO files for localization | |
run: composer translate | |
- name: Cleanup composer development packages and optimize autoloader | |
run: composer install --no-dev --no-interaction --no-progress --optimize-autoloader --classmap-authoritative | |
- name: Upload Plugin | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rotaract-appointments | |
path: | | |
./* | |
!tmp | |
!.* |