Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only deploy website when "website/**" has changed #1352

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/website_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,38 @@ on:
push:
branches:
- main
paths:
# We only build and deploy a new version, when a user relevant files
# changed.
- "website/**"
# We trigger also this workflow, if this workflow is changed, so that new
# changes will be applied.
- ".github/workflows/website_cd.yml"
# The following paths are excluded from the above paths. It's important to
# list the paths at the end of the file, so that the exclude paths are
# applied.
#
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-paths.
- "!**/*.md"
- "!**/*.mdx"
- "!**/*.gitignore"
# The macOS version is only used for debugging.
- "!website/macos/**"
# Test files are not relevant for the website deployment.
- "!**/test/**"
- "!**/test_driver/**"
- "!**/integration_test/**"
- "!**/analysis_options.yaml"
- "!**/dart_test.yaml"

# Allows you to run this workflow manually from the Actions tab.
#
# Since the website depends on the /lib folder, it could be that the website
# requires a new deployment. In this case, the developer needs to trigger the
# deployment manually or wait until the next change "website/**" is pushed. We
# do this to avoid unnecessary deployments since a new deployment invalidates
# the cache.
workflow_dispatch:

# Set permissions to none.
#
Expand Down
Loading