GitHub Action to install the Hot programming language CLI.
Use this action to set up Hot in your GitHub Actions workflows for deploying, testing, or running Hot projects.
name: Deployon:
push:
branches: [main]jobs:
deploy:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: hotdev/setup-hot@v1
- run: hot deployenv:
HOT_API_KEY: ${{ secrets.HOT_API_KEY }} - uses: hotdev/setup-hot@v1with:
version: '1.2.3' - uses: hotdev/setup-hot@v1with:
api-key: ${{ secrets.HOT_API_KEY }}
- run: hot deployname: Test and Deployon:
push:
branches: [main]jobs:
test-and-deploy:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: hotdev/setup-hot@v1
- run: hot check
- run: hot test
- run: hot deployenv:
HOT_API_KEY: ${{ secrets.HOT_API_KEY }}name: Deploy on Releaseon:
release:
types: [published]jobs:
deploy:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: hotdev/setup-hot@v1
- run: hot deployenv:
HOT_API_KEY: ${{ secrets.HOT_API_KEY }}| Name | Description | Required | Default |
|---|---|---|---|
version | Hot version to install (e.g. 1.2.3). | No | latest |
api-key | Hot API key for deployment. Alternative to setting HOT_API_KEY env var. | No |
- Detects the runner OS and architecture
- Downloads the appropriate Hot installer (
.pkgfor macOS,.debfor Linux) - Installs Hot system-wide
- Optionally sets
HOT_API_KEYin the environment - Verifies the installation succeeded
- Runner OS:
ubuntu-latestormacos-latest(Linux and macOS are supported) - Hot project: Your repository should contain a
hot.hotconfiguration file - API key: Set
HOT_API_KEYas a repository secret for deployment
- Get your API key from hot.dev
- Go to your GitHub repo → Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
HOT_API_KEY, Value: your API key
Your hot.hot config file reads this automatically:
hot.remote.hot-dev.key ::env/get("HOT_API_KEY", "")
| Runner | OS | Architecture |
|---|---|---|
ubuntu-latest | Linux | x86_64 |
ubuntu-24.04-arm | Linux | arm64 |
macos-latest | macOS | arm64 |
macos-13 | macOS | x86_64 |
Apache 2.0 — see LICENSE.