Update version to 3.1.0 #83
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: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
tag: | |
name: Upload Plugin to WP SVN | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: [ "7.4" ] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: "${{ matrix.php-versions }}" | |
dev: no | |
version: 2.x | |
- name: Install npm dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg | |
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | |
NODE_MAJOR=20 | |
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update && sudo apt-get install -y nodejs yarn | |
sudo npm install -g node-gyp | |
yarn --version | |
yarn && yarn run build | |
rm -rf node_modules | |
- name: Upload Action Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: uploadcare-wp | |
path: . | |
- name: WordPress Plugin Deploy | |
uses: 10up/action-wordpress-plugin-deploy@stable | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SLUG: uploadcare |