-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (63 loc) · 1.88 KB
/
release.yml
File metadata and controls
77 lines (63 loc) · 1.88 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
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
76
77
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-phar:
name: Build kcode.phar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: phar, zlib
ini-values: phar.readonly=0
tools: composer:v2
- name: Compile PHAR
run: |
php -d phar.readonly=0 bin/build-phar.php
ls -lh build/kcode.phar
- name: Verify PHAR
run: |
php build/kcode.phar --version
php build/kcode.phar --help
echo "✓ PHAR verification passed"
- name: Self-test
run: |
php build/kcode.phar init
php build/kcode.phar migrate --dry-run
echo "✓ Self-test passed"
- name: Extract version from tag
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
name: KaririCode Devkit ${{ steps.version.outputs.tag }}
draft: false
prerelease: false
files: build/kcode.phar
body: |
## Installation
### PHAR (standalone)
```bash
wget https://github.com/KaririCode-Framework/kariricode-devkit/releases/download/${{ steps.version.outputs.tag }}/kcode.phar
chmod +x kcode.phar
sudo mv kcode.phar /usr/local/bin/kcode
```
### Composer
```bash
composer require --dev kariricode/devkit
```
## Quick Start
```bash
kcode init
kcode migrate
kcode quality
```
See [CHANGELOG.md](CHANGELOG.md) for details.