We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87e570d + 16f023a commit 1202708Copy full SHA for 1202708
.github/workflows/deploy-apps-maps.yml
@@ -2,10 +2,14 @@ name: Build and publish apps/maps
2
3
on:
4
push:
5
+ branches:
6
+ - 'main'
7
paths:
8
+ - '.github/workflows/deploy-apps-maps.yml'
9
- 'apps/maps/**'
10
pull_request:
11
12
13
14
workflow_dispatch:
15
@@ -34,7 +38,7 @@ jobs:
34
38
35
39
# Preview on PRs
36
40
- name: Deploy apps/maps preview to Netlify
37
- if: ${{ github.ref != 'refs/heads/main' }}
41
+ if: ${{ github.event_name == 'pull_request' }}
42
run: |
43
npm install -g netlify-cli
44
netlify deploy --site=embeddable-maps-calitp-org --dir=apps/maps/build --alias=${GITHUB_REPOSITORY#*/}-${PR_NUMBER}
0 commit comments