-
Notifications
You must be signed in to change notification settings - Fork 119
42 lines (35 loc) · 1.12 KB
/
build-release.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
name: Build module & upload artifact
on:
workflow_dispatch:
workflow_call:
jobs:
build:
name: Build dependencies & create artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv, ext-zip
- name: Install composer dependencies
run: composer install --ansi --prefer-dist --no-interaction --no-progress --no-dev
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install and build npm dependencies
run: |
npm install --prefix ./_dev
npm run vite:build --prefix ./_dev
- name: Clean-up project
uses: PrestaShopCorp/[email protected]
with:
paths: storybook _dev
- name: Create & upload artifact
uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}
path: '.'