Skip to content

Commit 301bc76

Browse files
committed
chore: GitHub Actions ワークフローに画像処理ジョブを追加
1 parent 4f403b6 commit 301bc76

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

Diff for: .github/workflows/deploy.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,39 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18+
img:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.head_ref }}
24+
- uses: technote-space/get-diff-action@v6
25+
with:
26+
PATTERNS: src/contents/**/*.md
27+
- uses: pnpm/action-setup@v4
28+
name: Install pnpm
29+
with:
30+
version: 10
31+
run_install: false
32+
- name: Install Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 20
36+
cache: 'pnpm'
37+
- name: Install dependencies
38+
run: pnpm install
39+
- name: Install dependencies
40+
run: pnpm install
41+
42+
- name: Run Download
43+
env:
44+
COMMIT_ID: ${{ github.sha }}
45+
run: |
46+
pnpm download
47+
pnpm convert
48+
1849
build:
50+
needs: img
1951
runs-on: ubuntu-latest
2052
steps:
2153
- name: Checkout repository
@@ -26,7 +58,6 @@ jobs:
2658
node-version: 20
2759
package-manager: pnpm@latest
2860

29-
3061
deploy:
3162
needs: build
3263
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)