Skip to content
Snippets Groups Projects

Refactor Git configuration, add out/ directory to .gitlab-ci.yml, and update...

Merged John Fredrik Bendvold requested to merge deploy-fix into main
2 files
+ 12
11
Compare changes
  • Side-by-side
  • Inline
Files
2
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages
@@ -7,7 +6,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main", "temp"]
branches: ["main", "temp", "temp-*"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -51,7 +50,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "21"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v4
@@ -71,10 +70,10 @@ jobs:
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
#- name: Install dependencies
# run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
#- name: Build with Next.js
# run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Loading