File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 push :
77 branches :
88 - main
9+ - master # for backwards compatibility; use your default branch if different
910 tags :
1011 - ' *'
1112
6566 - name : Set up test result site
6667 run : cp scripts/index.html out/index.html
6768 - name : Collect deployment assets
68- if : ${{ github.ref == 'refs/heads/main' }}
69+ if : ${{ github.ref_name == github.event.repository.default_branch }}
6970 uses : actions/upload-pages-artifact@v4
7071 with :
7172 path : ./out
8182
8283 deploy :
8384 name : Deploy results to GitHub Pages
84- if : ${{ github.ref == 'refs/heads/main' }}
85+ if : ${{ github.ref_name == github.event.repository.default_branch }}
8586 needs : build
8687 runs-on : ubuntu-latest
8788 permissions :
@@ -103,7 +104,7 @@ jobs:
103104
104105 release :
105106 name : Release bundle
106- if : contains( github.ref, 'refs/tags/')
107+ if : ${{ github.ref_type == 'tag' }}
107108 needs : build
108109 runs-on : ubuntu-latest
109110 env :
You can’t perform that action at this time.
0 commit comments