Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add maintenance branch support
Browse files Browse the repository at this point in the history
kyoya-de committed Mar 20, 2023
1 parent c3982a3 commit b52ed5a
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/stable.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Stable Branch Workflow
on:
push:
branches:
- stable
branches: [ "[0-9]+.x", "stable" ]
workflow_dispatch: ~
pull_request:
branches: [ "[0-9]+.x", "stable" ]
types: [ opened, synchronize, reopened ]

jobs:
test:
@@ -32,8 +35,10 @@ jobs:

- name: Run phpmd
run: php vendor/bin/phpmd src/Makaira/ text codesize,design

release:
name: Create a new release
if: github.event_name != 'pull_request'
needs: test
runs-on: ubuntu-latest
steps:
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["stable"],
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "stable"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",

0 comments on commit b52ed5a

Please sign in to comment.