First-party GitHub Actions for Tenki workflows.
setup-cliinstalls thetenkiCLI on Linux and macOS runners.template-publishcreates, updates, builds, and publishes sandbox templates through thetenkiCLI.
Use setup-cli first, then template-publish.
name: Publish sandbox template
on:
push:
branches: [main]
paths:
- ".tenki/**"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: latest
- uses: TenkiCloud/actions/template-publish@v1
env:
TENKI_AUTH_TOKEN: ${{ secrets.TENKI_AUTH_TOKEN }}
with:
mode: update
project-id: ${{ secrets.TENKI_PROJECT_ID }}
template-id: ${{ secrets.TENKI_TEMPLATE_ID }}
setup-script-path: .tenki/setup.shPin action versions by major tag for patch updates:
- uses: TenkiCloud/actions/setup-cli@v1
- uses: TenkiCloud/actions/template-publish@v1Pin the CLI independently:
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: vX.Y.Ztemplate-publish reads TENKI_AUTH_TOKEN from the job environment. Do not pass the token through with:.
Required secrets for most workflows:
TENKI_AUTH_TOKEN: workspace-scoped Tenki API token.TENKI_PROJECT_ID: project that owns the template.TENKI_WORKSPACE_ID: required for one-timemode: create.TENKI_TEMPLATE_ID: required after bootstrap formode: update,build-only, andpublish-only.