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:
|
||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# 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 }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -89,9 +89,16 @@ jobs:
|
||||
echo "Secret PUBLIC_GITEA_URL is not set (public Gitea base URL for plugin catalog sourceUrl)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# API calls use the runner-reachable Gitea URL; catalog links use the public URL
|
||||
GITEA_API_URL="${{ github.server_url }}"
|
||||
PUBLIC_GITEA_URL="${PUBLIC_GITEA_URL%/}"
|
||||
REPO_OWNER="${{ github.repository_owner }}"
|
||||
REPO_NAME="${{ github.event.repository.name }}"
|
||||
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "actions@local"
|
||||
|
||||
manifest_dirty=0
|
||||
while IFS= read -r SLUG; do
|
||||
[[ -z "$SLUG" ]] && continue
|
||||
@@ -160,7 +167,7 @@ jobs:
|
||||
--data-binary "@${ARTIFACT}" \
|
||||
"${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")
|
||||
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/')
|
||||
|
||||
Reference in New Issue
Block a user