5 Commits

Author SHA1 Message Date
71f87b320a Fix CI release workflow for re-releases
All checks were successful
Create Release Package / build-release (push) Successful in 55s
- Delete existing releases before creating new ones
- Prevents "Release has no Tag" error on re-releases

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:48:28 +01:00
4a676aa195 Use path repository with version alias for CI compatibility
Some checks failed
Create Release Package / build-release (push) Failing after 57s
- Remove VCS repository (CI cannot access private Gitea server)
- Add version alias to path repository for wc-licensed-product-client
- Lock file now uses submodule directly without network access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:44:25 +01:00
898d711b2f Fix composer repository config for CI compatibility
Some checks failed
Create Release Package / build-release (push) Failing after 3m3s
- Add VCS repository for wc-licensed-product-client
- Mark path repository as non-canonical
- Regenerate lock file with v0.2.2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:39:27 +01:00
9b100c5f45 Add composer.lock for reproducible builds
Some checks failed
Create Release Package / build-release (push) Failing after 44s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:36:39 +01:00
8c24dac85c Fix composer dependency version constraint (v0.0.2)
All checks were successful
Create Release Package / build-release (push) Successful in 57s
- Use ^0.2.2 instead of dev-main for wc-licensed-product-client
- Set minimum-stability to stable for CI/CD compatibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:35:35 +01:00
5 changed files with 3143 additions and 5 deletions

View File

@@ -161,6 +161,20 @@ jobs:
# Read release notes # Read release notes
BODY=$(cat release_notes.txt) BODY=$(cat release_notes.txt)
# Check if release already exists for this tag and delete it
EXISTING_RELEASE=$(curl -s \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases/tags/${TAG_NAME}")
EXISTING_ID=$(echo "$EXISTING_RELEASE" | jq -r '.id // empty')
if [ -n "$EXISTING_ID" ] && [ "$EXISTING_ID" != "null" ]; then
echo "Deleting existing release ID: $EXISTING_ID"
curl -s -X DELETE \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases/${EXISTING_ID}"
fi
# Create release via Gitea API # Create release via Gitea API
RELEASE_RESPONSE=$(curl -s -X POST \ RELEASE_RESPONSE=$(curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \

View File

@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.0.2] - 2026-02-01
### Fixed
- Fixed composer.json dependency version constraint for wc-licensed-product-client (^0.2.2 instead of dev-main)
- Changed minimum-stability back to stable
## [0.0.1] - 2026-02-01 ## [0.0.1] - 2026-02-01
### Added ### Added

View File

@@ -17,12 +17,18 @@
"repositories": [ "repositories": [
{ {
"type": "path", "type": "path",
"url": "lib/wc-licensed-product-client" "url": "lib/wc-licensed-product-client",
"options": {
"symlink": false,
"versions": {
"magdev/wc-licensed-product-client": "0.2.2"
}
}
} }
], ],
"require": { "require": {
"php": ">=8.3", "php": ">=8.3",
"magdev/wc-licensed-product-client": "dev-main", "magdev/wc-licensed-product-client": "^0.2.2",
"promphp/prometheus_client_php": "^2.10" "promphp/prometheus_client_php": "^2.10"
}, },
"require-dev": { "require-dev": {
@@ -56,6 +62,6 @@
"phpcbf": "phpcbf", "phpcbf": "phpcbf",
"test": "phpunit" "test": "phpunit"
}, },
"minimum-stability": "dev", "minimum-stability": "stable",
"prefer-stable": true "prefer-stable": true
} }

3111
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@
* Plugin Name: WP Prometheus * Plugin Name: WP Prometheus
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-prometheus * Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-prometheus
* Description: Prometheus metrics endpoint for WordPress with extensible hooks for custom metrics. * Description: Prometheus metrics endpoint for WordPress with extensible hooks for custom metrics.
* Version: 0.0.1 * Version: 0.0.2
* Requires at least: 6.4 * Requires at least: 6.4
* Requires PHP: 8.3 * Requires PHP: 8.3
* Author: Marco Graetsch * Author: Marco Graetsch
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* *
* @var string * @var string
*/ */
define( 'WP_PROMETHEUS_VERSION', '0.0.1' ); define( 'WP_PROMETHEUS_VERSION', '0.0.2' );
/** /**
* Plugin file path. * Plugin file path.