File tree Expand file tree Collapse file tree 4 files changed +141
-0
lines changed
Expand file tree Collapse file tree 4 files changed +141
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches-ignore :
5+ - ' generated'
6+ - ' codegen/**'
7+ - ' integrated/**'
8+ - ' stl-preview-head/**'
9+ - ' stl-preview-base/**'
10+ pull_request :
11+ branches-ignore :
12+ - ' stl-preview-head/**'
13+ - ' stl-preview-base/**'
14+
15+ jobs :
16+ lint :
17+ timeout-minutes : 10
18+ name : lint
19+ runs-on : ${{ github.repository == 'stainless-sdks/php-publishing-test-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+ if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Set up PHP
26+ uses : ' shivammathur/setup-php@v2'
27+ with :
28+ php-version : ' 8.3'
29+
30+ - name : Run lints
31+ run : ./scripts/lint
32+ test :
33+ timeout-minutes : 10
34+ name : test
35+ runs-on : ${{ github.repository == 'stainless-sdks/php-publishing-test-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
36+ if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
37+ steps :
38+ - uses : actions/checkout@v4
39+
40+ - name : Set up PHP
41+ uses : ' shivammathur/setup-php@v2'
42+ with :
43+ php-version : ' 8.3'
44+
45+ - name : Run tests
46+ run : ./scripts/test
Original file line number Diff line number Diff line change 1+ name : Create releases
2+ on :
3+ schedule :
4+ - cron : ' 0 5 * * *' # every day at 5am UTC
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ release :
11+ name : release
12+ if : github.ref == 'refs/heads/main' && github.repository == 'jacobzim-stl/pubtest-php'
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - uses : stainless-api/trigger-release-please@v1
19+ id : release
20+ with :
21+ repo : ${{ github.event.repository.full_name }}
22+ stainless-api-key : ${{ secrets.STAINLESS_API_KEY }}
23+
24+ - name : Update Packagist
25+ run : |-
26+ curl -X POST -H 'Content-Type: application/json' 'https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}' -d '{"repository":"https://www.github.com/jacobzim-stl/pubtest-php"}'
Original file line number Diff line number Diff line change 1+ {
2+ "." : " 0.0.1"
3+ }
Original file line number Diff line number Diff line change 1+ {
2+ "packages" : {
3+ "." : {}
4+ },
5+ "$schema" : " https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json" ,
6+ "include-v-in-tag" : true ,
7+ "include-component-in-tag" : false ,
8+ "versioning" : " prerelease" ,
9+ "prerelease" : true ,
10+ "bump-minor-pre-major" : true ,
11+ "bump-patch-for-minor-pre-major" : false ,
12+ "pull-request-header" : " Automated Release PR" ,
13+ "pull-request-title-pattern" : " release: ${version}" ,
14+ "changelog-sections" : [
15+ {
16+ "type" : " feat" ,
17+ "section" : " Features"
18+ },
19+ {
20+ "type" : " fix" ,
21+ "section" : " Bug Fixes"
22+ },
23+ {
24+ "type" : " perf" ,
25+ "section" : " Performance Improvements"
26+ },
27+ {
28+ "type" : " revert" ,
29+ "section" : " Reverts"
30+ },
31+ {
32+ "type" : " chore" ,
33+ "section" : " Chores"
34+ },
35+ {
36+ "type" : " docs" ,
37+ "section" : " Documentation"
38+ },
39+ {
40+ "type" : " style" ,
41+ "section" : " Styles"
42+ },
43+ {
44+ "type" : " refactor" ,
45+ "section" : " Refactors"
46+ },
47+ {
48+ "type" : " test" ,
49+ "section" : " Tests" ,
50+ "hidden" : true
51+ },
52+ {
53+ "type" : " build" ,
54+ "section" : " Build System"
55+ },
56+ {
57+ "type" : " ci" ,
58+ "section" : " Continuous Integration" ,
59+ "hidden" : true
60+ }
61+ ],
62+ "release-type" : " php" ,
63+ "extra-files" : [
64+ " README.md"
65+ ]
66+ }
You can’t perform that action at this time.
0 commit comments