Skip to content

Commit 6cb3f5a

Browse files
committed
update: .github/workflows
1 parent 49fc08f commit 6cb3f5a

File tree

4 files changed

+60
-3
lines changed

4 files changed

+60
-3
lines changed

.github/workflows/cloudflare.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Cloudflare
22

3+
concurrency:
4+
group: ${{ github.workflow }}
5+
cancel-in-progress: true
6+
37
on:
48
push:
59
branches:
@@ -20,7 +24,7 @@ jobs:
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
@@ -29,7 +33,6 @@ jobs:
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
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: Release
1+
name: Github
2+
3+
concurrency:
4+
group: ${{ github.workflow }}
5+
cancel-in-progress: true
26

37
on:
48
push:

.github/workflows/shopify.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 }}"

extensions/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)