Update plugin version #32
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: Deploy to WordPress.org | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
tag: | |
name: New tag | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build npm dependencies | |
run: | | |
export NODE_OPTIONS=--openssl-legacy-provider | |
npm install | |
npm run build-prod | |
- name: Setup PHP with composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.3' | |
tools: composer | |
- name: Build composer dependencies | |
run: | | |
cd xcloner-backup-and-restore | |
composer install --no-dev --prefer-dist -o | |
- name: Remove unneeded files | |
run: | | |
rsync --exclude-from=".distignore" -av --delete "${SRC_DIR}/" "${BUILD_DIR}/" | |
env: | |
BUILD_DIR: xcloner-backup-and-restore-build | |
SRC_DIR: xcloner-backup-and-restore | |
- name: WordPress Plugin Deploy | |
uses: 10up/action-wordpress-plugin-deploy@develop | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SLUG: xcloner-backup-and-restore | |
BUILD_DIR: xcloner-backup-and-restore-build | |
with: | |
generate-zip: true |