Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

bravetheskies/shopify-rapid-deploy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shopify Rapid Deploy Action

Warning

This action has been deprecated in favour of using Shopify CLI's CI/CD features.

A GitHub action for rapid deployment of Shopify themes.

Usage

The action requires 4 environment variables to run and has one optional variable, they are listed below.

  • SHOPIFY_APP_API_PASSWORD - API password for your Shopify app.
  • SHOPIFY_STORE_URL - The store URL in format my-store.myshopify.com of your store.
  • SHOPIFY_THEME_ID - The ID of the theme to deploy to.
  • THEME_PATH - The path of your theme in your repository. If root use ./.
  • THEMEKIT_FLAGS (optional) - Shopify Theme Kit configuration flags.

It is recommended that you use encrypted secrets for your environment details.

They can easily be used in your workflow configuration like so:

...
- uses: bravetheskies/shopify-rapid-deploy-action@v1
  env:
    SHOPIFY_APP_API_PASSWORD: ${{ secrets.SHOPIFY_APP_API_PASSWORD }}
    SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
    SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
    THEME_PATH: ${{ secrets.SHOPIFY_THEME_PATH }}
...

Examples

Basic full workflow example:

name: Deploy theme
on: [workflow_dispatch]
jobs:
  build:
    name: Deploy theme
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@main
      - name: Deploy theme
        uses: bravetheskies/shopify-rapid-deploy-action@main
        env:
          SHOPIFY_APP_API_PASSWORD: ${{ secrets.SHOPIFY_APP_API_PASSWORD }}
          SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
          SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
          THEME_PATH: ${{ secrets.SHOPIFY_THEME_PATH }}

Example with flags from Shopify Theme Kit configuration:

name: Deploy theme
on: [workflow_dispatch]
jobs:
  build:
    name: Deploy theme
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@main
      - name: Deploy theme
        uses: bravetheskies/shopify-rapid-deploy-action@main
        env:
          SHOPIFY_APP_API_PASSWORD: ${{ secrets.SHOPIFY_APP_API_PASSWORD }}
          SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
          SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
          THEME_PATH: ${{ secrets.SHOPIFY_THEME_PATH }}
          THEMEKIT_FLAGS: --ignored-file=config/settings_data.json --ignored-file=locales/*

About

A GitHub action for rapid deployment of Shopify themes.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages