Release / release (push) Failing after 1m28s
Replace the `CRATE_KIT_REPO` variable with `CRATE_KIT_URL` in the release workflow to support anonymous HTTPS cloning from gargoton. Add a new MCP configuration for the 'qmd' server and update documentation to reflect changes in secret handling and repository structure. - Replace `CRATE_KIT_REPO` with `CRATE_KIT_URL` in `.gitea/workflows/release.yaml`, updating the clone step to use `git clone --depth 1` with the new URL variable. - Update `docs/pilot-risks.md` to document that `crate-kit` resides only on gargoton and is cloned anonymously via HTTPS, removing references to local mirrors on forge.metaboding.org. - Add `overlay/claude/mcp.json` to define the 'qmd' MCP server with the command `qmd mcp`, noting that these collections are external. - Update `tests/overlay.sh` to verify the installation of the 'qmd' MCP configuration by checking `.mcp.json` and `.claude/settings.json`. - Remove `FORGE_TOKEN_FILE` definition from `overlay/kit/org.mk` and add comments clarifying that forge tokens are in `secrets/` next to repositories, with `FORGETOKEN` overriding them in CI. - Update `README.md` to reflect the presence of `overlay/kit/org.mk` and `overlay/kit/VERSION`, and remove mentions of `secrets/` for forge tokens. - Add `/dist/` to `.gitignore` and remove the comment about workstation secrets. - Bump version in `overlay/kit/VERSION` from 0.1.0 to 0.1.1.
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
name: Release
|
|
|
|
# Triggered by the version-x.y.z tag that `make jjrelease` pushes. This kit is not a crate: no
|
|
# publication to the registry. Creates the Forgejo release (tag notes) and attaches the archive of overlay/ to it.
|
|
# The scripts come from crate-kit, cloned alongside. Safe to replay.
|
|
#
|
|
# Repository secret: FORGETOKEN (Forgejo token with write rights on the repositories and the releases).
|
|
on:
|
|
push:
|
|
tags:
|
|
- "version-*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
env:
|
|
FORGETOKEN: ${{ secrets.FORGETOKEN }}
|
|
TAG: ${{ github.ref_name }}
|
|
SERVER: ${{ github.server_url }}
|
|
REPO: ${{ github.repository }}
|
|
# crate-kit has ONE reference: gargoton (public repository, anonymous clone). It is not mirrored on
|
|
# this forge. Override only with the repository variable CRATE_KIT_URL (Settings > Actions > Variables).
|
|
# FORGETOKEN belongs to this forge and is never sent to another host.
|
|
CRATE_KIT_URL: ${{ vars.CRATE_KIT_URL || 'https://gargoton.petite-maison-orange.fr/LLM/crate-kit' }}
|
|
steps:
|
|
- name: System tools
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq git curl jq make
|
|
|
|
- name: Sources of the version and of crate-kit
|
|
run: |
|
|
git -c http.extraHeader="Authorization: token $FORGETOKEN" \
|
|
clone --depth 1 --branch "$TAG" "$SERVER/$REPO.git" src
|
|
git clone --depth 1 "$CRATE_KIT_URL" crate-kit
|
|
|
|
- name: Kit archive
|
|
working-directory: src
|
|
run: make dist CRATE_KIT="$GITHUB_WORKSPACE/crate-kit"
|
|
|
|
- name: Create the Forgejo release
|
|
working-directory: src
|
|
run: |
|
|
ASSET=$(ls dist/obi-kit-*.tar.gz) "$GITHUB_WORKSPACE/crate-kit/kit/scripts/forgejo-release.sh"
|