-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (38 loc) · 1.03 KB
/
release.yaml
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
on:
release:
types: [created]
name: Create release assets
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer
- name: Install dependencies
run: composer install --no-dev --optimize-autoloader --no-interaction
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Build panel assets
run: |
corepack enable
cd panel
yarn install
yarn build
- name: Create archive
run: |
zip -r formwork-${{ github.event.release.tag_name }}.zip . -x \
\*.git/\* \
\*.github/\* \
\*node_modules/\*
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
file: formwork-${{ github.event.release.tag_name }}.zip