-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphp-package.yml
More file actions
34 lines (30 loc) · 849 Bytes
/
php-package.yml
File metadata and controls
34 lines (30 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Example workflow for PHP packages (Packagist)
# Copy this file to your project's .github/workflows/release.yml
name: Release
on:
push:
branches:
- 'release/**'
- 'hotfix/**'
pull_request:
types: [closed]
branches: [main]
jobs:
release:
uses: banua-coder/banua-coder-workflow/.github/workflows/release.yml@v1
with:
project-type: php-package
main-branch: main
develop-branch: develop
changelog-format: keepachangelog
php-version: '8.2'
secrets: inherit
# Publish when tag is pushed
# Note: Packagist auto-detects tags via GitHub webhook
# This job just runs tests and notifies
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: release
uses: banua-coder/banua-coder-workflow/.github/workflows/publish-php.yml@v1
with:
php-version: '8.2'