chore: remove composer-publish.yml -- no longer needed
Universal: CodeQL Analysis / Security Scan Summary (push) Blocked by required conditions
MCP: Standards Compliance / Compliance Summary (push) Blocked by required conditions
Universal: Changelog Validation / Validate CHANGELOG.md (push) Failing after 10s
MCP: Standards Compliance / Secret Scanning (push) Successful in 8s
MCP: Standards Compliance / License Header Validation (push) Failing after 4s
MCP: Standards Compliance / Repository Structure Validation (push) Failing after 7s
MCP: Standards Compliance / Coding Standards Check (push) Failing after 5s
MCP: Standards Compliance / Workflow Configuration Check (push) Failing after 6s
Publish to npm / publish (push) Successful in 26s
MCP: Standards Compliance / Documentation Quality Check (push) Successful in 3s
MCP: Standards Compliance / Script Integrity Validation (push) Successful in 6s
MCP: Standards Compliance / README Completeness Check (push) Failing after 9s
MCP: Standards Compliance / Line Length Check (push) Failing after 6s
MCP: Standards Compliance / Git Repository Hygiene (push) Successful in 19s
MCP: Standards Compliance / Insecure Code Pattern Detection (push) Successful in 5s
MCP: Standards Compliance / File Naming Standards (push) Successful in 15s
MCP: Standards Compliance / Dead Code Detection (push) Successful in 18s
MCP: Standards Compliance / File Size Limits (push) Successful in 7s
MCP: Standards Compliance / Binary File Detection (push) Successful in 5s
MCP: Standards Compliance / Version Consistency Check (push) Successful in 1m8s
MCP: Standards Compliance / TODO/FIXME Tracking (push) Successful in 5s
Universal: CodeQL Analysis / Analyze (actions) (push) Failing after 1m59s
Universal: CodeQL Analysis / Analyze (javascript) (push) Failing after 2m6s
MCP: Standards Compliance / Code Duplication Detection (push) Successful in 1m7s
MCP: Standards Compliance / Broken Link Detection (push) Successful in 9s
MCP: Standards Compliance / Code Complexity Analysis (push) Successful in 1m11s
MCP: Standards Compliance / Accessibility Check (push) Successful in 8s
MCP: Standards Compliance / API Documentation Coverage (push) Successful in 9s
MCP: Standards Compliance / Performance Metrics (push) Successful in 9s
MCP: Standards Compliance / Terraform Configuration Validation (push) Successful in 16s
MCP: Standards Compliance / Dependency Vulnerability Scanning (push) Successful in 1m12s
MCP: Standards Compliance / Unused Dependencies Check (push) Successful in 1m12s
MCP: Standards Compliance / Enterprise Readiness Check (push) Successful in 1m24s
MCP: Standards Compliance / Repository Health Check (push) Successful in 1m25s
Universal: Sync Version on Merge / Propagate README version (push) Failing after 36s

This commit is contained in:
2026-06-23 18:01:31 +00:00
parent efd7d9d056
commit d6ef6eff9f
-76
View File
@@ -1,76 +0,0 @@
# Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Publish to Composer"
on:
push:
tags:
- 'v*'
- '[0-9]*.[0-9]*.[0-9]*'
release:
types: [published]
workflow_dispatch:
env:
GITEA_URL: ${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }}
jobs:
publish:
name: Publish Package
runs-on: ubuntu-latest
if: >-
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.head_commit.message, '[skip publish]')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
run: |
if ! command -v php &> /dev/null; then
sudo apt-get update -qq
sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1
fi
- name: Install dependencies
run: composer install --no-dev --no-interaction --prefer-dist --quiet
- name: Determine version
id: version
run: |
VERSION=$(php -r "echo json_decode(file_get_contents('composer.json'))->version;")
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "Package version: ${VERSION}"
# Gitea Composer Registry — auto-publishes from tags
# The tag push itself registers the package at:
# https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer
- name: Verify Gitea registry
run: |
echo "Gitea Composer registry auto-publishes from tags."
echo "Package available at: ${GITEA_URL}/api/packages/MokoConsulting/composer"
echo "Install: composer require mokoconsulting/mokocli"
# Packagist — notify of new version
- name: Notify Packagist
if: secrets.PACKAGIST_TOKEN != ''
run: |
VERSION="${{ steps.version.outputs.version }}"
echo "Notifying Packagist of version ${VERSION}..."
curl -sf -X POST \
-H "Content-Type: application/json" \
-d '{"repository":{"url":"https://git.mokoconsulting.tech/MokoConsulting/mokocli"}}' \
"https://packagist.org/api/update-package?username=mokoconsulting&apiToken=${{ secrets.PACKAGIST_TOKEN }}" \
&& echo "Packagist notified" \
|| echo "::warning::Packagist notification failed (package may not be registered yet)"
- name: Summary
run: |
VERSION="${{ steps.version.outputs.version }}"
echo "## Composer Package Published" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Registry | Status |" >> $GITHUB_STEP_SUMMARY
echo "|----------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| Gitea | \`composer require mokoconsulting/mokocli:${VERSION}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Packagist | \`composer require mokoconsulting/mokocli\` |" >> $GITHUB_STEP_SUMMARY