-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (39 loc) · 1.24 KB
/
deploy-to-wordpress.yml
File metadata and controls
47 lines (39 loc) · 1.24 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
name: Deploy to WordPress.org
on:
release:
types: [published]
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
- name: Install dependencies
run: npm i
# Build release assets using our release:build script
- name: Build release assets
run: npm run release:build
# Deploy to WordPress.org
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@2.3.0
# with:
# generate-zip: true
# dry-run: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}