forked from hlashbrooke/WordPress-Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.18 KB
/
dotcom-build-artifact.yml
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
55
56
57
58
name: Publish Website
on:
push:
branches:
- trunk
workflow_dispatch:
jobs:
Build-Artifact-Action:
name: Build-Artifact-Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install PHP dependencies
uses: php-actions/composer@v6
with:
dev: no
php_version: 8.1
- name: Setup node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Run yarn grunt
uses: borales/actions-yarn@v4
with:
cmd: grunt
- name: Upload the artifact
uses: actions/upload-artifact@v4
with:
name: repository-artifact
path: |
.
!.DS_Store
!.git
!.gitattributes
!.github
!.gitignore
!.editorconfig.json
!README.md
!composer.lock
!package-lock.json
!package.json
!travis.yml
!phpcs.xml.dist
!node_modules
!yarn.lock