-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.16 KB
/
release-plugin.yml
File metadata and controls
54 lines (43 loc) · 1.16 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
50
51
52
53
54
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
php-tests:
uses: ./.github/workflows/php-tests.yml
jest-tests:
uses: ./.github/workflows/jest-tests.yml
e2e:
uses: ./.github/workflows/e2e.yml
tag:
name: Build plugin and deploy to WordPress.org
runs-on: ubuntu-latest
needs: [php-tests, jest-tests, e2e]
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Javascript dependencies
run: |
npm install
- name: Package
run: |
./scripts/package.sh
- name: Remove zip file
run: |
rm common-knowledge-join-flow.zip
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: common-knowledge-join-flow
BUILD_DIR: dist/common-knowledge-join-flow
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true