-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (49 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build module artifact & deploy
on: [push, pull_request]
env:
PS_IMG_VERSION: prestashop/prestashop:1.7-7.4-apache
jobs:
build-js:
name: Build JS app
runs-on: ubuntu-latest
defaults:
run:
working-directory: _dev
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: npm
- name: Build JS files
run: npm run build
- name: Upload JS files
uses: actions/upload-artifact@v2
with:
name: built-app-in-folder-views-js
path: ../views/js
build:
name: Build dependencies & create artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Download VueJS application
uses: actions/download-artifact@v2
with:
name: built-app-in-folder-views-js
path: views/js
- name: Install dev composer dependencies
run: composer install
- name: Generate index.php
run: vendor/bin/autoindex
- name: Install prod composer dependencies
run: composer install --no-dev
- name: Clean-up project
uses: PrestaShopCorp/github-action-clean-before-deploy@v1.0
- name: Create & upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}
path: ../