Skip to content

Commit beaf5f8

Browse files
Fix PR preview deploy (tc39#210)
1 parent e4dba00 commit beaf5f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/auto-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
- uses: actions/download-artifact@v4
4646
if: success() || failure()
4747
- run: cp -r ./artifact/. .
48-
if: github.ref_name == 'main'
49-
- run: mkdir -p pr && cp -r ./artifact/. ./pr/${{ github.event.number }}
50-
if: github.event_name != 'push'
48+
if: github.event_name == 'push' && github.ref_name == 'main'
5149
- run: mkdir -p branch && cp -r ./artifact/. ./branch/${{ github.ref_name }}
5250
if: github.event_name == 'push' && github.ref_name != 'main'
51+
- run: mkdir -p pr && cp -r ./artifact/. ./pr/${{ github.event.number }}
52+
if: github.event_name != 'push'
5353
- run: rm -r artifact
5454
- name: Configure git
5555
run: |

0 commit comments

Comments
 (0)