-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 817 Bytes
/
Copy pathbuild.yml
File metadata and controls
40 lines (32 loc) · 817 Bytes
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
name: Build with Tag
on:
push:
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
# - name: Set up PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: '8.2'
#
# - name: Install Composer dependencies
# run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Build assets
run: cd themes/user/app; pnpm install; pnpm run build;
- name: Archive build artifacts
run: |
grep composer.json | xargs rm
grep composer.lock | xargs rm
zip -r ../release.zip .