Skip to content

Commit

Permalink
fix: Add release workflow (#64)
Browse files Browse the repository at this point in the history
* feat: Add release workflow

* Test default branch configuration

* Add release workflow

* Test on this branch

* fix: Try v4 of release please

* fix: Update release please config

* fix: Fix release please manifest

* fix: Fix manifest file name

* fix: Use default token
  • Loading branch information
gchtr authored Mar 1, 2024
1 parent 4e77d3e commit 54b4d5e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
/composer.json export-ignore
/docs export-ignore
/phpunit.xml.dist export-ignore
/release-please-config.json export-ignore
/tests export-ignore
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
push:
branches:
- 1.x
- 1.x-release-workflow

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.0"
}
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "php",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 54b4d5e

Please sign in to comment.