Skip to content

IamGoodBad/OrbitKit-Deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

OrbitKit Deploy

A GitHub Action that deploys your OrbitKit app site — privacy policies, support pages, data deletion pages, app site association files, and more — straight from your CI/CD pipeline.

Usage

- uses: IamGoodBad/OrbitKit-Deploy@v1
  with:
    api-key: ${{ secrets.ORBITKIT_API_KEY }}
    app-id: ${{ vars.ORBITKIT_APP_ID }}

Setup

  1. Get your API key from the OrbitKit Dashboard under Settings → API Keys
  2. Add it as a GitHub secret in your repo: Settings → Secrets → Actions → ORBITKIT_API_KEY
  3. Add your app ID as a variable: Settings → Variables → Actions → ORBITKIT_APP_ID

Inputs

Input Required Description
api-key Yes OrbitKit API key (ok_xxxx). Store as a GitHub secret.
app-id Yes Your OrbitKit app ID
api-endpoint No API base URL (default: https://api.orbitkit.io)

Outputs

Output Description
site-url The deployed site URL
deployed-at Deploy timestamp

Examples

Deploy on push to main

name: Deploy Privacy Policy
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: IamGoodBad/OrbitKit-Deploy@v1
        with:
          api-key: ${{ secrets.ORBITKIT_API_KEY }}
          app-id: ${{ vars.ORBITKIT_APP_ID }}

Deploy when policy files change

name: Deploy on Policy Update
on:
  push:
    branches: [main]
    paths:
      - 'privacy-policy.json'
      - 'support-page.json'

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: IamGoodBad/OrbitKit-Deploy@v1
        id: deploy
        with:
          api-key: ${{ secrets.ORBITKIT_API_KEY }}
          app-id: ${{ vars.ORBITKIT_APP_ID }}

      - name: Print site URL
        run: echo "Deployed to ${{ steps.deploy.outputs.site-url }}"

Deploy with the OrbitKit CLI

If you need to update policy data before deploying, use the OrbitKit CLI in an earlier step:

jobs:
  deploy:
    runs-on: ubuntu-latest
    env:
      ORBITKIT_API_KEY: ${{ secrets.ORBITKIT_API_KEY }}
      ORBITKIT_APP_ID: ${{ vars.ORBITKIT_APP_ID }}
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 22

      - name: Update privacy policy
        run: npx orbitkit policy set privacy-policy.json

      - name: Deploy
        uses: IamGoodBad/OrbitKit-Deploy@v1
        with:
          api-key: ${{ secrets.ORBITKIT_API_KEY }}
          app-id: ${{ vars.ORBITKIT_APP_ID }}

Security

  • API key as secret: Always store your API key as a GitHub secret, never hardcode it in workflows
  • Secret scanning: OrbitKit API keys use the ok_ prefix, which is auto-detected by GitHub secret scanning if accidentally committed
  • No script injection: All inputs are passed as environment variables, not interpolated in shell commands

License

Copyright OrbitKit. All rights reserved.

About

This is the GitHub Action for OrbitKit.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors