Skip to content

Commit 3da64f3

Browse files
committed
Update release logic
1 parent 7952d1e commit 3da64f3

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

.distignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ Thumbs.db
7575
*.*.map
7676

7777
# Build related files
78-
src
79-
/src/js
80-
/src/css
81-
lib
78+
/src
79+
/build
8280
development.md
8381
blueprint.json

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,26 @@ jobs:
1818
- name: Set plugin slug
1919
run: echo "PLUGIN_SLUG=insert-codes" >> $GITHUB_ENV
2020

21-
- name: Build plugin
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: '8.0'
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '20'
30+
cache: 'npm'
31+
32+
- name: Install Composer dependencies
33+
run: composer install --no-dev --no-scripts --optimize-autoloader
34+
35+
- name: Install npm dependencies and build
36+
run: |
37+
npm install
38+
npm run build
39+
40+
- name: Prepare plugin for distribution
2241
run: |
2342
mkdir build
2443
rsync -av --exclude-from=.distignore ./ build/${{ env.PLUGIN_SLUG }}

0 commit comments

Comments
 (0)