-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (39 loc) · 1.26 KB
/
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
name: Deploy
on:
push:
branches:
- master
release:
types: [published]
jobs:
deploy:
name: Deploy to WordPress.org
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Setup PHP and Composer
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
tools: composer:v2
- name: Install NPM dependencies
run: npm install
- name: Authenticate with WordPress.org SVN
run: |
mkdir -p ~/.subversion
echo "store-passwords = yes" > ~/.subversion/config
svn info --username "${{ secrets.DEPLOY_SVN_USERNAME }}" --password "${{ secrets.DEPLOY_SVN_PASSWORD }}" https://plugins.svn.wordpress.org/code-prettify/
- name: Deploy to WordPress.org SVN
env:
DEPLOY_SVN_USERNAME: ${{ secrets.DEPLOY_SVN_USERNAME }}
DEPLOY_TRUNK: ${{ contains( github.ref_name, 'master' ) }}
DEPLOY_TAG: ${{ contains( github.ref_type, 'tag' ) }}
DEPLOY_SKIP_CONFIRMATION: true
if: env.DEPLOY_SVN_USERNAME
run: npm run deploy-ci -- --debug -vvv