Skip to content

Commit

Permalink
Add workflow_dispatch to trigger build manually
Browse files Browse the repository at this point in the history
Shopify's bot's PR's preview build work correctly (https://01hsy7xbvc9wwerachj9xjb8aw-1e6e21ecac686203357d.myshopify.dev/), but once merged, it doesn't anymore (https://01hsy7wztzwpyrb32vgeckevsx-1e6e21ecac686203357d.myshopify.dev/).

Hopefully it was just a glitch and rerunning the build will fix it. Otherwise, we'll revert the merge.
  • Loading branch information
Zwyx committed Mar 27, 2024
1 parent 01be424 commit 3bff14f
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/oxygen-deployment-1000011401.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,37 @@
#! oxygen_storefront_id: 1000011401

name: Storefront 1000011401

on:
- push
push:
workflow_dispatch:

permissions:
contents: read
deployments: write

jobs:
deploy:
name: Deploy to Oxygen
timeout-minutes: 30
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvmrc
- uses: actions/setup-node@v4
with:
node-version: "${{ env.nvmrc }}"
cache: npm
- run: npm ci
- name: Build and Publish to Oxygen
id: deploy
env:
OKENDO_SUBSCRIBER_ID: "${{ secrets.OKENDO_SUBSCRIBER_ID }}"
SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN: "${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000011401 }}"
run: npx shopify hydrogen deploy
- uses: actions/checkout@v4

- run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvmrc

- uses: actions/setup-node@v4
with:
node-version: '${{ env.nvmrc }}'
cache: npm

- run: npm ci

- name: Build and Publish to Oxygen
id: deploy
env:
OKENDO_SUBSCRIBER_ID: '${{ secrets.OKENDO_SUBSCRIBER_ID }}'
SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN: '${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000011401 }}'
run: npx shopify hydrogen deploy

0 comments on commit 3bff14f

Please sign in to comment.