File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
env :
13
- PREVIEW_URL : ' https://{{ github.repository_owner }}-{{ github.event.repository.name }}-{{ github.job }}-pr-{{ github.event.number }}.surge.sh'
14
- PRODUCTION_URL : ' https://tutorial.xarray.dev/'
13
+ PREVIEW_URL : ' https://{{ github.repository_owner }}-{{ github.event.repository.name }}-preview-pr-{{ github.event.number }}.surge.sh'
15
14
16
15
jobs :
17
16
preview :
17
+ if : github.ref != 'refs/heads/main'
18
18
runs-on : ubuntu-latest
19
19
environment :
20
- name : ${{ github.ref == 'refs/heads/main' && 'production' || ' preview' }}
21
- url : ${{ github.ref == 'refs/heads/main' && env.PRODUCTION_URL || env.PREVIEW_URL }}
20
+ name : ' preview'
21
+ url : ${{ env.PREVIEW_URL }}
22
22
23
23
steps :
24
24
- name : Checkout repository
You can’t perform that action at this time.
0 commit comments