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

fix(ci): only deploy maps app previews on relevant pull requests #3454

Merged
merged 1 commit into from
Sep 13, 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
6 changes: 5 additions & 1 deletion .github/workflows/deploy-apps-maps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Build and publish apps/maps

on:
push:
branches:
- 'main'
paths:
- '.github/workflows/deploy-apps-maps.yml'
- 'apps/maps/**'
pull_request:
paths:
- '.github/workflows/deploy-apps-maps.yml'
- 'apps/maps/**'
workflow_dispatch:

Expand Down Expand Up @@ -34,7 +38,7 @@ jobs:

# Preview on PRs
- name: Deploy apps/maps preview to Netlify
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' }}
run: |
npm install -g netlify-cli
netlify deploy --site=embeddable-maps-calitp-org --dir=apps/maps/build --alias=${GITHUB_REPOSITORY#*/}-${PR_NUMBER}
Expand Down
Loading