Skip to content

Commit 9d580ac

Browse files
authored
Merge pull request #39 from codebtech/feat/create-build
new workflow for build
2 parents b1a6a4e + af5165f commit 9d580ac

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.deployignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.gitignore
2+
composer.lock
3+
phpcs.xml*
4+
.babelrc
5+
.env.dist
6+
.editorconfig
7+
.eslintrc
8+
.prettierrc.js
9+
.wp-env.json
10+
webpack.config.js
11+
docker-compose.yml
12+
docker
13+
test_results
14+
node_modules

.github/workflows/plugin-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build WordPress Plugin
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Cache Composer dependencies
17+
uses: actions/cache@v4
18+
with:
19+
path: /tmp/composer-cache
20+
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
21+
22+
- name: Setup PHP with tools
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: '8.3'
26+
tools: composer:v2
27+
28+
- name: Install dependencies
29+
run: composer install --no-dev -o
30+
31+
- name: Deploy to main-built branch
32+
run: bash <(curl -s "https://raw.githubusercontent.com/Automattic/vip-go-build/master/deploy.sh")

0 commit comments

Comments
 (0)