Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
09aa303a
Unverified
Commit
09aa303a
authored
Dec 10, 2024
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Dec 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip `build_and_deploy` on docs-only changes (#73659)
parent
dfa14fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
build_and_deploy.yml
.github/workflows/build_and_deploy.yml
+10
-0
No files found.
.github/workflows/build_and_deploy.yml
View file @
09aa303a
...
...
@@ -45,6 +45,9 @@ jobs:
elif [ '${{ github.event_name }}' == 'workflow_dispatch' ]
then
echo "value=force-preview" >> $GITHUB_OUTPUT
elif [[ $(node scripts/run-for-change.js --not --type docs --exec echo 'false') != 'false' ]];
then
echo "value=skipped" >> $GITHUB_OUTPUT
else
echo "value=automated-preview" >> $GITHUB_OUTPUT
fi
...
...
@@ -52,6 +55,9 @@ jobs:
run
:
echo "Deploy target is '${{ steps.deploy-target.outputs.value }}'"
build
:
if
:
${{ needs.deploy-target.outputs.value != 'skipped' }}
needs
:
-
deploy-target
runs-on
:
ubuntu-latest
env
:
NEXT_TELEMETRY_DISABLED
:
1
...
...
@@ -96,6 +102,7 @@ jobs:
# Build binaries for publishing
build-native
:
if
:
${{ needs.deploy-target.outputs.value != 'skipped' }}
needs
:
-
deploy-target
defaults
:
...
...
@@ -380,6 +387,9 @@ jobs:
path
:
.turbo/runs
build-wasm
:
if
:
${{ needs.deploy-target.outputs.value != 'skipped' }}
needs
:
-
deploy-target
strategy
:
matrix
:
target
:
[
web
,
nodejs
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment