-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (35 loc) · 1005 Bytes
/
relesase.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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci --production
- run: npm run build
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: composer--no-dev-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
uses: php-actions/composer@v6
with:
php_version: "8.1"
php_extensions: intl
dev: no
args: --classmap-authoritative
- name: Generate zip
run: npm run plugin-zip && cp .zip ${{ github.event.repository.name }}.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.event.repository.name }}.zip