Skip to content

Commit

Permalink
chore(actions): add release please workflow (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
thislg authored May 21, 2024
1 parent 234e95f commit 508e8cd
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- "master"

env:
PHP_EXTENSIONS: "zip"
PHP_VERSION: "8.3"

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 508e8cd

Please sign in to comment.