This commit is contained in:
2024-06-25 13:56:39 +02:00
parent 1962e85d6b
commit 180f0bddb5
+14 -10
View File
@@ -24,8 +24,11 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "16" # Adjust based on your project's compatibility
node-version: "22"
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
@@ -41,14 +44,15 @@ jobs:
restore-keys: |
${{ runner.os }}-node-modules-
- name: Cache Build Output
uses: actions/cache@v4
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-build-output-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nextjs-build-output-
- name: Cache Build Output
uses: actions/cache@v4
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-build-output-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nextjs-build-output-
- name: Upload Artifact
uses: actions/upload-artifact@v3
@@ -64,7 +68,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: nextjs-build
path: ./
path: .
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3