You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2
-
#
3
-
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4
-
#
5
-
name: Deploy Next.js site to Pages
1
+
name: Check NextJs build
6
2
7
3
on:
8
4
# Runs on pushes targeting the default branch
9
5
push:
10
6
branches: ["main"]
7
+
8
+
# Runs on any open or reopened pull request
9
+
pull_request:
10
+
types: [opened, reopened] # you can change this according to https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-multiple-events
11
11
12
12
# Allows you to run this workflow manually from the Actions tab
13
13
workflow_dispatch:
14
14
15
15
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16
16
permissions:
17
17
contents: read
18
-
pages: write
19
18
id-token: write
20
19
21
-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
0 commit comments