-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.37 KB
/
wp-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy to WP.org svn
on:
release:
types: [published]
jobs:
tag:
name: Tag deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2.4.0
with:
node-version: 16
cache: yarn
- name: Cache Composer dependencies
uses: actions/cache@v2.1.6
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install composer dependencies
uses: php-actions/composer@v6
with:
php_version: 7.4
version: 2
dev: no
quiet: yes
args: --optimize-autoloader --classmap-authoritative --prefer-dist
- name: Install Yarn dependencies
run: yarn install
- name: Build
run: "yarn build:production"
- name: Pre deploy scripts
run: "sh ./.github/scripts/deploy.sh"
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_USERNAME: ${{ secrets.WP_ORG_SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.WP_ORG_SVN_PASSWORD }}
ASSETS_DIR : ".wordpress-org/assets"
SLUG: wc-serbian-nestpay
with:
generate-zip: false