File tree Expand file tree Collapse file tree 4 files changed +60
-3
lines changed
Expand file tree Collapse file tree 4 files changed +60
-3
lines changed Original file line number Diff line number Diff line change 11name : Cloudflare
22
3+ concurrency :
4+ group : ${{ github.workflow }}
5+ cancel-in-progress : true
6+
37on :
48 push :
59 branches :
2024 - run : npm ci
2125 - run : npm run build --ignore-scripts
2226 env :
23- SHOPIFY_API_KEY : ${{ env .SHOPIFY_API_KEY }}
27+ SHOPIFY_API_KEY : ${{ vars .SHOPIFY_API_KEY }}
2428 - run : npm test
2529 - uses : github/codeql-action/analyze@v3
2630 - uses : actions/upload-artifact@v4
2933 path : dist
3034
3135 deploy :
32- if : " !contains(github.event.head_commit.message, '[skip-ci]')"
3336 name : Deploy
3437 needs : build
3538 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1- name : Release
1+ name : Github
2+
3+ concurrency :
4+ group : ${{ github.workflow }}
5+ cancel-in-progress : true
26
37on :
48 push :
Original file line number Diff line number Diff line change 1+ name : Shopify
2+
3+ concurrency :
4+ group : ${{ github.workflow }}
5+ cancel-in-progress : true
6+
7+ on :
8+ push :
9+ branches :
10+ - main
11+
12+ env :
13+ SHOPIFY_API_KEY : ${{ vars.SHOPIFY_API_KEY }}
14+ SHOPIFY_CLI_NO_ANALYTICS : true
15+ SHOPIFY_CLI_PARTNERS_TOKEN : ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}
16+
17+ jobs :
18+ deploy :
19+ if : " !contains(github.event.head_commit.message, '[skip-ci]')"
20+ name : Deploy
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : github/codeql-action/init@v3
25+ - uses : actions/setup-node@v4
26+ with :
27+ node-version-file : " package.json"
28+ cache : " npm"
29+ - run : npm ci
30+ - run : npm install -g @shopify/cli@latest
31+ - run : npx shopify app build --path=./extensions
32+ - run : npx shopify app deploy --force --message="${{ github.ref_name }}" --no-release --source-control-url="$COMMIT_URL" --version="deploy:${{ github.sha }}"
33+ env :
34+ COMMIT_URL : ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
35+ - uses : github/codeql-action/analyze@v3
36+ - uses : actions/upload-artifact@v4
37+ with :
38+ name : extensions
39+ path : extensions
40+
41+ release :
42+ name : Release
43+ needs : deploy
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/download-artifact@v4
47+ with :
48+ name : extensions
49+ - run : npm install -g @shopify/cli@latest
50+ - run : npx shopify app release --force --version="release:${{ github.sha }}"
You can’t perform that action at this time.
0 commit comments