Update Gitea URL variable in release workflow and README documentation
Build and Release Jellyfin plugins / release (push) Failing after 4s
Build and Release Jellyfin plugins / release (push) Failing after 4s
This commit is contained in:
@@ -80,7 +80,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Public base URL for manifest sourceUrl (no trailing slash), e.g. https://gitea.example.com
|
# Public base URL for manifest sourceUrl (no trailing slash), e.g. https://gitea.example.com
|
||||||
GITEA_PUBLIC_URL: ${{ secrets.GITEA_PUBLIC_URL }}
|
PUBLIC_GITEA_URL: ${{ secrets.PUBLIC_GITEA_URL }}
|
||||||
PLUGINS: ${{ steps.detect.outputs.plugins }}
|
PLUGINS: ${{ steps.detect.outputs.plugins }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -89,9 +89,16 @@ jobs:
|
|||||||
echo "Secret PUBLIC_GITEA_URL is not set (public Gitea base URL for plugin catalog sourceUrl)"
|
echo "Secret PUBLIC_GITEA_URL is not set (public Gitea base URL for plugin catalog sourceUrl)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# API calls use the runner-reachable Gitea URL; catalog links use the public URL
|
||||||
GITEA_API_URL="${{ github.server_url }}"
|
GITEA_API_URL="${{ github.server_url }}"
|
||||||
|
PUBLIC_GITEA_URL="${PUBLIC_GITEA_URL%/}"
|
||||||
REPO_OWNER="${{ github.repository_owner }}"
|
REPO_OWNER="${{ github.repository_owner }}"
|
||||||
REPO_NAME="${{ github.event.repository.name }}"
|
REPO_NAME="${{ github.event.repository.name }}"
|
||||||
|
|
||||||
|
git config user.name "gitea-actions"
|
||||||
|
git config user.email "actions@local"
|
||||||
|
|
||||||
manifest_dirty=0
|
manifest_dirty=0
|
||||||
while IFS= read -r SLUG; do
|
while IFS= read -r SLUG; do
|
||||||
[[ -z "$SLUG" ]] && continue
|
[[ -z "$SLUG" ]] && continue
|
||||||
@@ -160,7 +167,7 @@ jobs:
|
|||||||
--data-binary "@${ARTIFACT}" \
|
--data-binary "@${ARTIFACT}" \
|
||||||
"${GITEA_API_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases/${RELEASE_ID}/assets?name=${ARTIFACT_NAME}"
|
"${GITEA_API_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases/${RELEASE_ID}/assets?name=${ARTIFACT_NAME}"
|
||||||
|
|
||||||
DOWNLOAD_URL="${GITEA_PUBLIC_URL}/${REPO_OWNER}/${REPO_NAME}/releases/download/${TAG}/${ARTIFACT_NAME}"
|
DOWNLOAD_URL="${PUBLIC_GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/releases/download/${TAG}/${ARTIFACT_NAME}"
|
||||||
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
GUID=$(grep -E '^guid:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/guid:[[:space:]]*"?([^"]*)"?/\1/')
|
GUID=$(grep -E '^guid:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/guid:[[:space:]]*"?([^"]*)"?/\1/')
|
||||||
TARGET_ABI=$(grep -E '^targetAbi:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/targetAbi:[[:space:]]*"?([^"]*)"?/\1/')
|
TARGET_ABI=$(grep -E '^targetAbi:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/targetAbi:[[:space:]]*"?([^"]*)"?/\1/')
|
||||||
|
|||||||
+1
-1
@@ -29,6 +29,6 @@ Bump `Jellyfin/<slug>/version` before pushing when you want a new release. Re-pu
|
|||||||
|
|
||||||
| Secret | Example | Used for |
|
| Secret | Example | Used for |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `GITEA_PUBLIC_URL` | `https://gitea.example.com` | `sourceUrl` in `manifest.json` (no trailing slash) |
|
| `PUBLIC_GITEA_URL` | `https://gitea.example.com` | `sourceUrl` in `manifest.json` (no trailing slash) |
|
||||||
|
|
||||||
API calls still use the runner’s internal Gitea URL; only catalog download links use this secret.
|
API calls still use the runner’s internal Gitea URL; only catalog download links use this secret.
|
||||||
Reference in New Issue
Block a user