Skip to content

Commit d366a35

Browse files
committed
Attempt action to create build and release
Needs some work…
1 parent db1a515 commit d366a35

1 file changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name: Build with Tag
22

33
on:
44
push:
5-
branches:
6-
- main
7-
#on:
8-
# push:
9-
# tags:
10-
# - '*'
5+
6+
on:
7+
push:
8+
tags:
9+
- '*'
1110

1211
jobs:
1312
build:
@@ -23,13 +22,19 @@ jobs:
2322
version: 10
2423
run_install: false
2524

26-
- name: Set up PHP
27-
uses: shivammathur/setup-php@v2
28-
with:
29-
php-version: '8.2'
30-
31-
- name: Install Composer dependencies
32-
run: composer install --no-interaction --prefer-dist --optimize-autoloader
25+
# - name: Set up PHP
26+
# uses: shivammathur/setup-php@v2
27+
# with:
28+
# php-version: '8.2'
29+
#
30+
# - name: Install Composer dependencies
31+
# run: composer install --no-interaction --prefer-dist --optimize-autoloader
3332

3433
- name: Build assets
35-
run: pnpm run build
34+
run: cd themes/user/app; pnpm install; pnpm run build;
35+
36+
- name: Archive build artifacts
37+
run: |
38+
grep composer.json | xargs rm
39+
grep composer.lock | xargs rm
40+
zip -r ../release.zip .

0 commit comments

Comments
 (0)