-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.53 KB
/
zip.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
name: Zip
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v2
- uses: ramsey/composer-install@v1
with:
composer-options: '--no-dev -o'
- name: 👀 See the content
run: ls
- name: Use Node.js 12
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: List output files
run: find dist/ -print
# - name: Archive Release
# uses: thedoctor0/zip-release@master
# with:
# type: 'zip'
# filename: 'ciao.zip'
# exclusions: '*.git* /*node_modules/* .editorconfig /test*/* .env .gitignore codeception.*'
# - uses: papeloto/action-zip@v1
# with:
# files: .
# recursive: true
# dest: ciao.zip
- uses: actions/upload-artifact@v2
with:
name: ciao
path: dist/**
retention-days: 5