Skip to content

Commit dc80a1a

Browse files
Merge pull request #3 from RyosukeDTomita/feature/actions
feat: actions test
2 parents 290a926 + 6c60d9d commit dc80a1a

File tree

2 files changed

+7
-139
lines changed

2 files changed

+7
-139
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@ name: Deploy Next.js site to Pages
22

33
on:
44
push:
5-
branches: ["main"]
5+
#branches: ["main"]
66
paths:
7-
- 'src/**'
8-
- 'public/**'
9-
- 'package.json'
10-
- 'package-lock.json'
11-
- 'next.config.ts'
12-
- 'tailwind.config.ts'
13-
- 'tsconfig.json'
14-
- 'postcss.config.mjs'
15-
- 'eslint.config.mjs'
7+
- 'url-memo-app/**'
8+
- '.github/workflows/deploy.yml'
169
workflow_dispatch:
1710

1811
permissions:
@@ -36,19 +29,22 @@ jobs:
3629
with:
3730
node-version: '20'
3831
cache: 'npm'
32+
cache-dependency-path: 'url-memo-app/package-lock.json'
3933

4034
- name: Install dependencies
4135
run: npm ci
36+
working-directory: url-memo-app
4237

4338
- name: Build Next.js site
4439
run: npm run build
40+
working-directory: url-memo-app
4541
env:
4642
NODE_ENV: production
4743

4844
- name: Upload artifact
4945
uses: actions/upload-pages-artifact@v3
5046
with:
51-
path: ./out
47+
path: ./url-memo-app/out
5248

5349
deploy:
5450
environment:

url-memo-app/README.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)