Skip to content

Commit

Permalink
chore(actions): add release please workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thislg committed Apr 26, 2024
1 parent 5647fe2 commit 257743d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- "master"

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

if: github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ env.PHP_VERSION }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
tools: humbug/box

- name: Validate composer.json and composer.lock
run: composer validate --strict

- uses: google-github-actions/release-please-action@v4
id: create_release
with:
target-branch: master
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "php",
"include-component-in-tag": false,
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"draft": true,
"package-name": "release-please-action",
"release-type": "php"
}
}
}
3 changes: 3 additions & 0 deletions release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.1.0"
}

0 comments on commit 257743d

Please sign in to comment.