-
Notifications
You must be signed in to change notification settings - Fork 29
75 lines (69 loc) · 2.94 KB
/
development-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build development zip file
on: push
jobs:
build:
name: Build, test and zip
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0]
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
tools: composer:v1
- name: Get Composer cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer cache
uses: actions/cache@master
with:
path: ${{ steps['composer-cache'].outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Build autoloader
run: composer install --no-dev --prefer-dist
- name: Using Node version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: bootstrap, npm install, build, and test
run: |
npm install
npm run build-assets
touch .devbuild
env:
CI: true
- name: Package
uses: actions/upload-artifact@v2
with:
name: editorskit
retention-days: 10
path: |
${{ github.workspace }}/
!${{ github.workspace }}/node_modules/
!${{ github.workspace }}/.github/
!${{ github.workspace }}/.git/
!${{ github.workspace }}/src/
!${{ github.workspace }}/.editorconfig
!${{ github.workspace }}/.npmignore
!${{ github.workspace }}/.eslintrc.js
!${{ github.workspace }}/.eslintignore
!${{ github.workspace }}/.gitignore
!${{ github.workspace }}/.svgrrc
!${{ github.workspace }}/.prettierrc.js
!${{ github.workspace }}/.prettierignore
!${{ github.workspace }}/.phpcs.xml
!${{ github.workspace }}/webpack.config.js
!${{ github.workspace }}/composer.json
!${{ github.workspace }}/composer.lock
!${{ github.workspace }}/package.json
!${{ github.workspace }}/package-lock.json
!${{ github.workspace }}/readme.md