-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (41 loc) · 1.3 KB
/
test-deploy-to-wordpress.yml
File metadata and controls
49 lines (41 loc) · 1.3 KB
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
49
name: Deploy to WordPress.org
on:
release:
types: [unpublished]
env:
BUILD_DIR: ./build
SLUG: ${{ vars.SLUG }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v4
# Cache node modules
- name: Cache node modules
uses: ./.github/actions/restore-npm-cache
with:
cache-prefix: npm-deps-v1
# Setup Node 16
- uses: actions/setup-node@v3
with:
node-version: 16
# Install dependencies & build release assets
- name: Install dependencies
run: |
npm i
# Build release assets
- name: Build release assets and copy to build directory
run: |
npm run build:release
# Deploy to WordPress.org
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@2.2.2
with:
# generate-zip: true
dry-run: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}