-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (37 loc) · 1.07 KB
/
release.yml
File metadata and controls
47 lines (37 loc) · 1.07 KB
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
name: Release Plugin
on:
push:
branches:
- main
jobs:
build-and-release:
name: Build and Release
runs-on: ubuntu-latest
permissions:
contents: write # Required to create releases and tags
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Get Version
id: get_version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
- name: Build Plugin ZIP
run: make zip
- name: Create Release and Upload Asset
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.get_version.outputs.VERSION }}
name: v${{ steps.get_version.outputs.VERSION }}
generate_release_notes: true
files: carousel-kit.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}