Released version 3.4.0
This commit is contained in:
1 parent
d70baec3ec
commit
d035dbe215
3 files changed
+18
-6
No files matched your search
@@ -7,6 +7,9 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-asset:
|
upload-asset:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -37,11 +40,18 @@ jobs:
|
|||||||
- name: Upload zip to Gitea Release
|
- name: Upload zip to Gitea Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITEA_URL: ${{ github.server_url }}
|
API_URL: ${{ github.api_url }}
|
||||||
|
SERVER_URL: ${{ github.server_url }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/$REPO/releases/tags/$TAG")
|
if [ -z "$API_URL" ]; then
|
||||||
|
API_URL="${SERVER_URL}/api/v1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Target API: $API_URL/repos/$REPO"
|
||||||
|
|
||||||
|
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API_URL/repos/$REPO/releases/tags/$TAG")
|
||||||
RELEASE_ID=$(echo "$RELEASE_JSON" | jq -r .id)
|
RELEASE_ID=$(echo "$RELEASE_JSON" | jq -r .id)
|
||||||
|
|
||||||
if [ "$RELEASE_ID" = "null" ] || [ -z "$RELEASE_ID" ]; then
|
if [ "$RELEASE_ID" = "null" ] || [ -z "$RELEASE_ID" ]; then
|
||||||
@@ -50,13 +60,13 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"Release $TAG\"}" \
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"Release $TAG\"}" \
|
||||||
"$GITEA_URL/api/v1/repos/$REPO/releases")
|
"$API_URL/repos/$REPO/releases")
|
||||||
RELEASE_ID=$(echo "$CREATE_RES" | jq -r .id)
|
RELEASE_ID=$(echo "$CREATE_RES" | jq -r .id)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uploading laps.zip to release ID $RELEASE_ID..."
|
echo "Uploading laps.zip to release ID $RELEASE_ID..."
|
||||||
curl -s -X POST \
|
curl -s -f -X POST \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "attachment=@release/laps.zip" \
|
-F "attachment=@release/laps.zip" \
|
||||||
"$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=laps.zip"
|
"$API_URL/repos/$REPO/releases/$RELEASE_ID/assets?name=laps.zip"
|
||||||
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 3.4.0 - 2026-09-26
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- raised minimum required PHP version to 7.4 to align with WordPress 7.0+
|
- raised minimum required PHP version to 7.4 to align with WordPress 7.0+
|
||||||
- added `Requires at least: 7.0` to plugin header
|
- added `Requires at least: 7.0` to plugin header
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Plugin Name: Laps
|
|||||||
Plugin URI: https://github.com/Rarst/laps
|
Plugin URI: https://github.com/Rarst/laps
|
||||||
Description: Light WordPress profiler.
|
Description: Light WordPress profiler.
|
||||||
Author: Andrey “Rarst” Savchenko
|
Author: Andrey “Rarst” Savchenko
|
||||||
Version: 3.3.7
|
Version: 3.4.0
|
||||||
Author URI: https://www.rarst.net/
|
Author URI: https://www.rarst.net/
|
||||||
Requires at least: 7.0
|
Requires at least: 7.0
|
||||||
Requires PHP: 7.4
|
Requires PHP: 7.4
|
||||||
|
|||||||
Reference in new issue
Block a user