Publish Manus bundle workflow (NomaDamas/k-skill)
The Publish Manus bundle workflow from NomaDamas/k-skill, explained and optimized by Latchkey.
CI health: A - excellent
Point runs-on at Latchkey and get job timeouts, self-healing for flaky steps, and up to 58% lower cost, applied automatically.
What it does
This is the Publish Manus bundle workflow from the NomaDamas/k-skill repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.
Below, Latchkey shows a faster, safer version produced by its optimization engine.
The workflow
name: Publish Manus bundle
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "*/SKILL.md"
- "*/scripts/**"
- "*/references/**"
- "*/templates/**"
- "scripts/build-manus-bundle.js"
- "scripts/validate-skills.sh"
- ".github/workflows/manus-bundle.yml"
permissions:
contents: write
concurrency:
group: manus-bundle-latest
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
env:
RELEASE_TAG: manus-bundle-latest
RELEASE_TITLE: "Manus bundle (rolling)"
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
cache: npm
- run: npm ci
- name: Build .skill bundle
run: npm run build:manus-bundle
- name: Verify build output
run: |
set -euo pipefail
test -f dist/manus/k-skill-manus-all.zip
test -f dist/manus/INDEX.md
count=$(ls dist/manus/*.skill | wc -l)
if [ "$count" -lt 1 ]; then
echo "no .skill files produced" >&2
exit 1
fi
echo "built $count .skill files"
- name: Publish rolling release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
notes=$(cat <<EOF
Auto-built Manus.ai-compatible \`.skill\` bundle for every skill in k-skill.
- **\`k-skill-manus-all.zip\`** - combined download containing every \`.skill\` file plus \`INDEX.md\`. Unzip, then drag-drop individual \`.skill\` files into Manus.
- **\`INDEX.md\`** - human-readable listing of every bundled skill.
Manus accepts one skill per upload (\`.skill\`/\`.zip\`/folder). See [\`docs/install-manus.md\`](https://github.com/${GITHUB_REPOSITORY}/blob/main/docs/install-manus.md) for the full flow.
This is a rolling pre-release that is overwritten on every push to \`main\`. Built from commit \`${GITHUB_SHA}\`.
EOF
)
if gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
gh release edit "$RELEASE_TAG" \
--repo "$GITHUB_REPOSITORY" \
--title "$RELEASE_TITLE" \
--notes "$notes" \
--prerelease
else
gh release create "$RELEASE_TAG" \
--repo "$GITHUB_REPOSITORY" \
--title "$RELEASE_TITLE" \
--notes "$notes" \
--prerelease \
--target "$GITHUB_SHA"
fi
gh release upload "$RELEASE_TAG" \
--repo "$GITHUB_REPOSITORY" \
--clobber \
dist/manus/k-skill-manus-all.zip \
dist/manus/INDEX.md
The same workflow, on Latchkey
Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.
name: Publish Manus bundle on: workflow_dispatch: push: branches: - main paths: - "*/SKILL.md" - "*/scripts/**" - "*/references/**" - "*/templates/**" - "scripts/build-manus-bundle.js" - "scripts/validate-skills.sh" - ".github/workflows/manus-bundle.yml" permissions: contents: write concurrency: group: manus-bundle-latest cancel-in-progress: true jobs: publish: timeout-minutes: 30 runs-on: latchkey-small env: RELEASE_TAG: manus-bundle-latest RELEASE_TITLE: "Manus bundle (rolling)" steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: node-version: 20 cache: npm - run: npm ci - name: Build .skill bundle run: npm run build:manus-bundle - name: Verify build output run: | set -euo pipefail test -f dist/manus/k-skill-manus-all.zip test -f dist/manus/INDEX.md count=$(ls dist/manus/*.skill | wc -l) if [ "$count" -lt 1 ]; then echo "no .skill files produced" >&2 exit 1 fi echo "built $count .skill files" - name: Publish rolling release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail notes=$(cat <<EOF Auto-built Manus.ai-compatible \`.skill\` bundle for every skill in k-skill. - **\`k-skill-manus-all.zip\`** - combined download containing every \`.skill\` file plus \`INDEX.md\`. Unzip, then drag-drop individual \`.skill\` files into Manus. - **\`INDEX.md\`** - human-readable listing of every bundled skill. Manus accepts one skill per upload (\`.skill\`/\`.zip\`/folder). See [\`docs/install-manus.md\`](https://github.com/${GITHUB_REPOSITORY}/blob/main/docs/install-manus.md) for the full flow. This is a rolling pre-release that is overwritten on every push to \`main\`. Built from commit \`${GITHUB_SHA}\`. EOF ) if gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then gh release edit "$RELEASE_TAG" \ --repo "$GITHUB_REPOSITORY" \ --title "$RELEASE_TITLE" \ --notes "$notes" \ --prerelease else gh release create "$RELEASE_TAG" \ --repo "$GITHUB_REPOSITORY" \ --title "$RELEASE_TITLE" \ --notes "$notes" \ --prerelease \ --target "$GITHUB_SHA" fi gh release upload "$RELEASE_TAG" \ --repo "$GITHUB_REPOSITORY" \ --clobber \ dist/manus/k-skill-manus-all.zip \ dist/manus/INDEX.md
What changed
- Run on Latchkey managed runners with one line (
runs-on), which apply the fixes below automatically and self-heal transient failures. This example useslatchkey-small; pick the runner size that fits the job. - Add a job timeout so a hung step cannot burn hours of runner time.
What Latchkey heals here
This workflow has steps that commonly fail on transient issues (network, registries, flaky browsers). On Latchkey managed runners they are detected, retried, and self-healed instead of failing your build:
- Dependency installs
This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.