Skip to content

Commit 9166938

Browse files
committed
update workflows
1 parent dddf396 commit 9166938

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# This workflow builds and publishes the shadcn registry to GitHub Pages when tags are pushed
1+
# This workflow builds and publishes the shadcn registry to GitHub Pages when main branch is updated
22

33
name: Publish Registry
44

55
on:
66
push:
7-
tags:
8-
- '*'
7+
branches:
8+
- main
99

1010
permissions:
1111
contents: read
@@ -14,6 +14,7 @@ permissions:
1414

1515
jobs:
1616
publish:
17+
environment: github-pages
1718
runs-on: ubuntu-latest
1819
steps:
1920
- name: Checkout repository
@@ -123,10 +124,10 @@ jobs:
123124
EOF
124125
125126
- name: Setup Pages
126-
uses: actions/configure-pages@v4
127+
uses: actions/configure-pages@v5
127128

128129
- name: Upload artifact
129-
uses: actions/upload-pages-artifact@v3
130+
uses: actions/upload-pages-artifact@v4
130131
with:
131132
path: ./registry-static
132133

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)