Authentication
PushPreview leverages an API key for secure and automated preview generation across your projects. This key, once generated, can be used accross multiple repositories, facilitating a unified preview deployment across various projects.
Generate the PushPreview API Key
To obtain an API key, follow these steps:
Log into your PushPreview account.
Navigate to the Teams tab.
Under the API Keys section, click on Create API Key.
The generated API key will be displayed for you to copy. Remember to save this key securely, as it will only be displayed once and cannot be retrieved later.
Integration with projects
To configure the GitHub secret, follow these steps:
Generate a PushPreview token. For more information, see Authentication.
Go to the Settings tab of your GitHub repository or organization.
In the Settings menu, navigate to Secrets and chose Actions.
Click on New repository secret or New organization secret, depending on your choice in the previous step.
Use the following details to create a new token:
- Name:
PUSHPREVIEW_TOKEN
- Token: The token you have generated.
- Name:
Click Add secret.