Skip to content

powersync-community/github-actions-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Sync Rules Demo

This repository shows how to deploy PowerSync sync rules to an instance whenever a push to the main branch includes changes to sync-rules.yaml. The included GitHub Actions workflow installs the PowerSync CLI and runs the deployment command automatically.

Prerequisites

  • A PowerSync instance.
  • GitHub repository secrets named:
    • POWERSYNC_AUTH_TOKEN
    • POWERSYNC_INSTANCE_ID
    • POWERSYNC_PROJECT_ID
    • POWERSYNC_ORG_ID

Getting the GitHub secrets

  1. Sign in to the PowerSync dashboard.
  2. Generate a personal access token.
  3. Store the token in your repository secrets as POWERSYNC_AUTH_TOKEN.
  4. Copy your PowerSync instance ID from the dashboard and store it as POWERSYNC_INSTANCE_ID.
  5. From the dashboard URL, copy your project ID and organization ID and store them as POWERSYNC_PROJECT_ID and POWERSYNC_ORG_ID.

Node Sample

The node/ directory contains a simple Node project that connects to PowerSync, runs SELECT * FROM lists and SELECT * FROM todos, and logs the results. It exists purely as a demo alongside the GitHub Actions workflow.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published