-
Notifications
You must be signed in to change notification settings - Fork 164
49 lines (39 loc) · 1.11 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
name: ZIP
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: nanasess/setup-php@master
with:
php-version: '7.4'
- name: Install PHP dependencies, optimized
run: composer install --no-dev -o
- name: Install JS dependencies
run: yarn
- name: Build assets for release
run: yarn build
# MUST set in package.json to same as tag name before pushing tag
- name: Set version number
run: yarn version:number
- name: Create build
run: yarn package
- name: Create ZIP
uses: papeloto/action-zip@v1
with:
files: build/${{ github.ref }}/
recursive: true
dest: caldera-forms-${{ github.ref }}.zip
- name: Upload ZIP to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: caldera-forms-${{ github.ref }}.zip
tag: ${{ github.ref }}