Skip to content

Commit 2374fcc

Browse files
committed
Update workflow.
1 parent dec8c2b commit 2374fcc

File tree

1 file changed

+45
-29
lines changed

1 file changed

+45
-29
lines changed

.github/workflows/wpcom.yml

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,54 @@
1-
name: Publish Website
1+
name: Deploy Plugin
22

33
on:
44
push:
55
branches:
66
- main
77
workflow_dispatch:
8+
89
jobs:
9-
Build-Artifact-Action:
10-
name: Build-Artifact-Action
10+
Deploy-Plugin:
11+
name: Deploy-Plugin
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@master
14-
- name: Upload the artifact
15-
uses: actions/upload-artifact@v4
16-
with:
17-
name: wpcom
18-
path: |
19-
.
20-
!.DS_Store
21-
!.stylelintrc.json
22-
!.eslintrc
23-
!.git
24-
!.gitattributes
25-
!.github
26-
!.gitignore
27-
!README.md
28-
!composer.json
29-
!composer.lock
30-
!node_modules
31-
!vendor
32-
!package-lock.json
33-
!package.json
34-
!.travis.yml
35-
!phpcs.xml.dist
36-
!sass
37-
!style.css.map
38-
!yarn.lock
14+
- uses: actions/checkout@master
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
21+
- name: Install Dependencies
22+
run: npm install
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Upload the artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: wpcom
31+
path: |
32+
.
33+
!.DS_Store
34+
!.stylelintrc.json
35+
!.eslintrc
36+
!.git
37+
!.gitattributes
38+
!.github
39+
!.gitignore
40+
!README.md
41+
!composer.json
42+
!composer.lock
43+
!node_modules
44+
!vendor
45+
!package-lock.json
46+
!package.json
47+
!webpack.config.js
48+
!.travis.yml
49+
!phpcs.xml.dist
50+
!sass
51+
!style.css.map
52+
!yarn.lock
53+
!src/
54+
!node_modules/

0 commit comments

Comments
 (0)