How to Deploy Static Sites from GitHub Actions

Static.app API Keys are secure, personal tokens that are essential for automating the deployment of your static sites and built applications directly from external services, such as GitHub Actions. By using an API key, you can enable continuous integration and continuous deployment (CI/CD) pipelines securely without exposing your main account credentials.

See on GitHub Marketplace: https://github.com/marketplace/actions/static-app-deploy

Getting Started: Secure Setup

To begin deploying your projects automatically from GitHub, you must first secure your connection using the official designmodo/static-app-deploy-action . This requires two critical setup steps.

Step 1: Get Your Static.app API Key

The API key serves as the secure token required to authorize the deployment action.

  1. Go to the Static.app dashboard.
  2. Sign in to your account.
  3. Navigate to Account, then look for API Keys.
  4. Select the Create API Key button.
  5. Set a Name and Expiration.
  6. Copy the generated key (it will start with sk_ ).
Create an API Key
Create an API Key

Step 2: Add API Key to GitHub Secrets

To keep your API key secure and out of your public workflow files, you must store it as a GitHub secret.

  1. Go to your GitHub repository.
  2. Navigate to SettingsSecrets and variablesActions.
  3. Click New repository secret.
  4. Set the Name to: STATIC_APP_API_KEY
  5. Set the Secret to: Your API key copied from Static.app.
  6. Click Add secret.
Add a Secret
Add a Secret

For comprehensive usage examples, specific workflow configuration, and a complete list of deployment inputs, please refer to our detailed guide on Static.app Deploy Action.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us