-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 883 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New version tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
- uses: ramsey/composer-install@v2
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Build plugin
run: |
npm ci --no-progress --no-dev
npm run build
- name: Deploy plugin to wordpress.org
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}