Step 6.1. Deployments with GitHub
Last updated
Was this helpful?
Last updated
Was this helpful?
Hydrogen supports CI/CD with GitHub out of the box. If you connect the to GitHub, then Oxygen will automatically deploy every time you push or merge changes in your Hydrogen repository.
When using Hydrogen with GitHub, you have two options:
A Shopify account on a .
A GitHub account.
The Ciseco - Hydrogen project has been pushed to your GitHub repo.
The is installed on your GitHub account.
You can and then connect it to Shopify.
In the Shopify admin, under Sales channels, click Hydrogen.
Click Create storefront.
Type a name for your new storefront. The name can be edited later.
Make sure Set up GitHub continuous deployment now is selected.
Select your GitHub account or organization from the dropdown.
Select the repository for your Ciseco Hydrogen storefront.
Click Connect.
Oxygen pulls a copy of your Hydrogen app code base and automatically creates a preview deployment. The Shopify GitHub app also opens a pull request in your repo to add a GitHub Actions workflow file to handle future deployments.
The Shopify GitHub app automatically opens a pull request to create this file when you connect a repo:
Follow these steps to finish configuring your Hydrogen app for continuous deployment to Oxygen:
In the Hydrogen channel, click the name of the storefront that you just created.
Click Review and merge on GitHub to open the pull request in a new tab.
Close the tab to return to the Hydrogen storefront overview.
Oxygen will automatically create a new deployment in your production environment and continue watching your repo for updates. Each time you push one or more commits to your repo, Oxygen will create a new preview deployment with your changes.
Follow GitHubβs prompts to .