Skip to content

chore: Oss publish pipeline - #934

Merged
sbansla merged 8 commits into
mainfrom
oss-publish-pipeline
Aug 13, 2026
Merged

chore: Oss publish pipeline#934
sbansla merged 8 commits into
mainfrom
oss-publish-pipeline

Conversation

@sbansla

@sbansla sbansla commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

oss publishing pipeline for php

@sbansla
sbansla requested review from shrutiburman and a lite review from Copilot August 13, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated GitHub Actions workflow intended to support OSS publishing for this PHP SDK by running release-time checks on version tags, including dependency hygiene and a full PHP test matrix, with a final “publish” gate.

Changes:

  • Introduces a new deploy.yml workflow triggered on release tags.
  • Adds lockfile hygiene + matrix test verification (PHP 7.2–8.4) with Artifactory OIDC auth.
  • Adds a publish-stage validation ensuring the git tag matches src/Twilio/VersionInfo.php (publishing-related steps are currently commented out).
Suppressed comments (1)

.github/workflows/deploy.yml:65

  • runs-on: ubuntu-x64 is inconsistent with the other workflows in this repo (which use ubuntu-latest) and may not be a valid GitHub-hosted runner label, which would prevent the job from being scheduled.
    runs-on: ubuntu-x64

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/deploy.yml Outdated
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
Comment thread .github/workflows/deploy.yml Outdated
Comment on lines +15 to +17
composer-lockfile-hygiene:
runs-on: ubuntu-x64
steps:
Comment thread .github/workflows/deploy.yml Outdated
verify:
name: Verify - PHP ${{ matrix.php }}
needs: [composer-lockfile-hygiene]
runs-on: ubuntu-x64
Comment thread .github/workflows/deploy.yml Outdated
- name: Validate tag format and version match
run: |
TAG="${GITHUB_REF#refs/tags/}"
if [[ ! "$TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
Comment thread .github/workflows/deploy.yml Outdated
Comment on lines +68 to +71
permissions:
contents: write
id-token: write
attestations: write
Comment thread .github/workflows/deploy.yml Outdated
Comment on lines +62 to +67
publish:
name: Publish to Packagist
needs: [verify]
runs-on: ubuntu-x64
if: success() && github.ref_type == 'tag' && github.repository_owner == 'twilio'
environment: production
@sbansla sbansla changed the title Oss publish pipeline chore: Oss publish pipeline Aug 13, 2026
@sbansla
sbansla merged commit 8baea90 into main Aug 13, 2026
12 of 13 checks passed
@sbansla
sbansla deleted the oss-publish-pipeline branch August 13, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants