forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
755f6a4
commit e1ae79c
Showing
3 changed files
with
173 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy Shopify Theme (Test) | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- feature/github-actions # Change 'feature/github-actions' to main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' # Specify the Node.js version required | ||
|
||
- name: Install Shopify CLI | ||
run: npm install -g @shopify/cli @shopify/theme | ||
|
||
- name: Authenticate Shopify CLI | ||
env: | ||
SHOPIFY_CLI_AUTH_TOKEN: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }} | ||
run: echo $SHOPIFY_CLI_AUTH_TOKEN | shopify login --store ${{ secrets.SHOPIFY_STORE_URL }} --password-stdin | ||
|
||
- name: Deploy to Shopify Store | ||
env: | ||
SHOPIFY_PASSWORD: ${{ secrets.SHOPIFY_PASSWORD }} | ||
SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }} | ||
SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }} | ||
run: shopify theme push --allow-live --themeid=${{ secrets.SHOPIFY_THEME_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
node_modules |
Oops, something went wrong.