Skip to content

Commit 5285d65

Browse files
committed
try again
1 parent 7cdaadc commit 5285d65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/preview.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
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'
1514

1615
jobs:
1716
preview:
17+
if: github.ref != 'refs/heads/main'
1818
runs-on: ubuntu-latest
1919
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 }}
2222

2323
steps:
2424
- name: Checkout repository

0 commit comments

Comments
 (0)