First-party GitHub Actions for Tenki workflows.
setup-cliinstalls thetenkiCLI on Linux and macOS runners.template-buildcreates or updates and builds sandbox templates from.tenki/template.json.template-publishis deprecated and remains available for legacy setup-script templates.
Use setup-cli first, then template-build.
name: Build sandbox template
on:
push:
branches: [main]
paths:
- ".tenki/template.json"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: latest
- uses: TenkiCloud/actions/template-build@v1
id: template
env:
TENKI_API_KEY: ${{ secrets.TENKI_API_KEY }}
with:
template: node-api
- run: echo "Built ${{ steps.template.outputs.image }}"Pin action versions by major tag for patch updates:
- uses: TenkiCloud/actions/setup-cli@v1
- uses: TenkiCloud/actions/template-build@v1Pin the CLI independently:
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: vX.Y.Ztemplate-build reads TENKI_API_KEY or TENKI_AUTH_TOKEN from the job environment. Do not pass credentials through with:.
Required secrets for most workflows:
TENKI_API_KEYorTENKI_AUTH_TOKEN: Tenki API credential.
The credential determines the Workspace for template operations.