Skip to content

Commit

Permalink
Update nextjs.yml
Browse files Browse the repository at this point in the history
- Removed Github Pages
  • Loading branch information
berkanumutlu authored Nov 7, 2024
1 parent d22552e commit 18015d6
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
group: "deploy" # or pages
cancel-in-progress: false

jobs:
Expand Down Expand Up @@ -53,14 +53,14 @@ jobs:
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
with:
#- name: Setup Pages
# uses: actions/configure-pages@v5
# with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
# static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
with:
Expand All @@ -77,19 +77,19 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.runner }} test
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
#- name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: ./out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
#deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4

0 comments on commit 18015d6

Please sign in to comment.