Skip to content

Commit e50e932

Browse files
Merge pull request #28 from Palbahngmiyine/ci/release-please
ci: release-please 도입으로 자동 릴리즈 PR 흐름 구성
2 parents af1fdaf + 0349b40 commit e50e932

5 files changed

Lines changed: 46 additions & 98 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "5.1.2"
3+
}

.github/release-please-config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "php",
6+
"package-name": "solapi/sdk",
7+
"include-component-in-tag": false,
8+
"include-v-in-tag": true,
9+
"tag-separator": "",
10+
"draft": false,
11+
"prerelease": false,
12+
"changelog-path": "CHANGELOG.md",
13+
"extra-files": [
14+
{
15+
"type": "generic",
16+
"path": "src/Models/Request/DefaultAgent.php"
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
name: Run release-please
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Run release-please
18+
uses: googleapis/release-please-action@v4
19+
with:
20+
config-file: .github/release-please-config.json
21+
manifest-file: .github/.release-please-manifest.json

.github/workflows/release.yml

Lines changed: 0 additions & 97 deletions
This file was deleted.

src/Models/Request/DefaultAgent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DefaultAgent
1616

1717
public function __construct()
1818
{
19-
$this->sdkVersion = 'php/5.1.2';
19+
$this->sdkVersion = 'php/5.1.2'; // x-release-please-version
2020
$this->osPlatform = PHP_OS . " | " . phpversion();
2121
}
2222
}

0 commit comments

Comments
 (0)