refactor(catalog): register focused Harmony plugins and accelerate mainland CI
This commit is contained in:
@@ -16,10 +16,28 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- run: corepack enable && corepack pnpm install --frozen-lockfile
|
||||
- name: Check out catalog from Gitea
|
||||
env:
|
||||
CHECKOUT_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
run: |
|
||||
set -eu
|
||||
auth_script=$(mktemp)
|
||||
trap 'rm -f "$auth_script"' EXIT
|
||||
cat > "$auth_script" <<'AUTH'
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
*Username*) printf '%s\n' x-access-token ;;
|
||||
*) printf '%s\n' "$CHECKOUT_TOKEN" ;;
|
||||
esac
|
||||
AUTH
|
||||
chmod 700 "$auth_script"
|
||||
GIT_ASKPASS="$auth_script" GIT_TERMINAL_PROMPT=0 git clone --quiet --depth 1 --branch main "$GITEA_SERVER_URL/trove/curios.git" catalog
|
||||
- name: Register completed release
|
||||
run: node tools/sync-release.mjs --publish
|
||||
working-directory: catalog
|
||||
run: |
|
||||
source tools/ci-runtime.sh
|
||||
node tools/sync-release.mjs --publish
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
GITEA_TOKEN: ${{ secrets.PLUGIN_RELEASE_TOKEN }}
|
||||
@@ -27,3 +45,5 @@ jobs:
|
||||
CATALOG_REPOSITORY: ${{ gitea.repository }}
|
||||
RELEASE_REPOSITORY: ${{ inputs.repository }}
|
||||
RELEASE_TAG: ${{ inputs.tag }}
|
||||
NPM_REGISTRY: ${{ vars.NPM_REGISTRY }}
|
||||
NODE_MIRROR: ${{ vars.NODE_MIRROR }}
|
||||
|
||||
Reference in New Issue
Block a user