Skip to content

Commit e14bc39

Browse files
authored
Set up Shopify Oxygen deployment workflow file
1 parent 6bbdc3d commit e14bc39

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Storefront 1000057909
2+
on: [push]
3+
4+
permissions:
5+
contents: read
6+
deployments: write
7+
8+
jobs:
9+
deploy:
10+
name: Deploy to Oxygen
11+
timeout-minutes: 30
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "lts/*"
20+
check-latest: true
21+
22+
- name: Cache node modules
23+
id: cache-npm
24+
uses: actions/cache@v4
25+
env:
26+
cache-name: cache-node-modules
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-build-${{ env.cache-name }}-
32+
${{ runner.os }}-build-
33+
${{ runner.os }}-
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Build and Publish to Oxygen
39+
run: npx shopify hydrogen deploy
40+
env:
41+
SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000057909 }}

0 commit comments

Comments
 (0)