Home

GitHub Actions

Use the Supra CLI together with GitHub Actions to automatically deploy our Supra Edge Functions. View on GitHub.

deploy.yaml

_24
name: Deploy Function
_24
_24
on:
_24
push:
_24
branches:
_24
- main
_24
workflow_dispatch:
_24
_24
jobs:
_24
deploy:
_24
runs-on: ubuntu-latest
_24
_24
env:
_24
supra_ACCESS_TOKEN: YOUR_supra_ACCESS_TOKEN
_24
PROJECT_ID: YOUR_supra_PROJECT_ID
_24
_24
steps:
_24
- uses: actions/checkout@v3
_24
_24
- uses: supra/setup-cli@v1
_24
with:
_24
version: latest
_24
_24
- run: supra functions deploy --project-ref $PROJECT_ID

Since Supra CLI v1.62.0 you can deploy all functions with a single command.

Individual function configuration like JWT verification and import map location can be set via the config.toml file.


_10
[functions.hello-world]
_10
verify_jwt = false