Skip to content

Commit 514ead1

Browse files
committed
Release plugin via GitHub Action
1 parent 186387e commit 514ead1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
push:
4+
# tags:
5+
# - "*"
6+
jobs:
7+
tag:
8+
name: New tag
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
13+
- name: Setup PHP with composer v2
14+
uses: shivammathur/setup-php@v2
15+
16+
- name: Install Node.js via NVM
17+
uses: irby/setup-node-nvm@master
18+
19+
- name: Install Javascript dependencies
20+
run: |
21+
npm install
22+
23+
- name: Package
24+
run: |
25+
./scripts/package.sh
26+
27+
- name: Remove zip file
28+
run: |
29+
rm common-knowledge-join-flow.zip
30+
31+
- name: WordPress Plugin Deploy
32+
uses: 10up/action-wordpress-plugin-deploy@stable
33+
with:
34+
dry-run: true
35+
env:
36+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
37+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
38+
SLUG: common-knowledge-join-flow
39+
BUILD_DIR: dist/common-knowledge-join-flow

0 commit comments

Comments
 (0)