Skip to content

Commit 42f35c1

Browse files
committed
ci: Add auto-release workflow
1 parent 37b2f7f commit 42f35c1

File tree

3 files changed

+108
-1
lines changed

3 files changed

+108
-1
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "php",
4+
"packages": {
5+
".": {
6+
"package-name": "destroy",
7+
"changelog-path": "/CHANGELOG.md"
8+
}
9+
},
10+
"include-component-in-tag": false,
11+
"include-v-in-tag": false,
12+
"changelog-type": "default",
13+
"changelog-sections": [
14+
{
15+
"type": "feat",
16+
"section": "Features",
17+
"hidden": false
18+
},
19+
{
20+
"type": "fix",
21+
"section": "Bug Fixes",
22+
"hidden": false
23+
},
24+
{
25+
"type": "perf",
26+
"section": "Performance Improvements",
27+
"hidden": false
28+
},
29+
{
30+
"type": "docs",
31+
"section": "Documentation",
32+
"hidden": false
33+
},
34+
{
35+
"type": "deps",
36+
"section": "Dependencies",
37+
"hidden": false
38+
},
39+
{
40+
"type": "refactor",
41+
"section": "Code Refactoring",
42+
"hidden": false
43+
},
44+
{
45+
"type": "test",
46+
"section": "Tests",
47+
"hidden": true
48+
},
49+
{
50+
"type": "tests",
51+
"section": "Tests",
52+
"hidden": true
53+
},
54+
{
55+
"type": "build",
56+
"section": "Build System",
57+
"hidden": true
58+
},
59+
{
60+
"type": "ci",
61+
"section": "Continuous Integration",
62+
"hidden": true
63+
},
64+
{
65+
"type": "chore",
66+
"section": "Miscellaneous",
67+
"hidden": true
68+
},
69+
{
70+
"type": "style",
71+
"section": "Styles",
72+
"hidden": true
73+
},
74+
{
75+
"type": "revert",
76+
"section": "Reverts",
77+
"hidden": true
78+
}
79+
]
80+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
# https://github.com/wayofdev/gh-actions/blob/master/.github/workflows/create-release.yml
4+
# https://github.com/google-github-actions/release-please-action#release-types-supported
5+
# https://github.com/googleapis/release-please/blob/main/docs/customizing.md
6+
7+
on: # yamllint disable-line rule:truthy
8+
push:
9+
branches:
10+
- 1.x
11+
12+
name: 📦 Create release
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 🎉 Create release
19+
uses: googleapis/release-please-action@v4
20+
id: release
21+
with:
22+
token: ${{ secrets.RELEASE_TOKEN }}
23+
config-file: .github/.release-please-config.json
24+
manifest-file: resources/version.json
25+
target-branch: 1.x
26+
27+
...

resources/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "0.1.0"
33
}

0 commit comments

Comments
 (0)