Skip to content

Commit 3344cfe

Browse files
committed
ci: fix duplicate artifacts in GitHub Pages deployment
- Add unique concurrency group per ref - Set explicit artifact name and retention - Prevent multiple artifact uploads
1 parent 7d1014e commit 3344cfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-storybook.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
id-token: write
1212

1313
concurrency:
14-
group: pages
14+
group: pages-${{ github.ref }}
1515
cancel-in-progress: true
1616

1717
jobs:
@@ -61,6 +61,8 @@ jobs:
6161
uses: actions/upload-pages-artifact@v3
6262
with:
6363
path: storybook-static
64+
name: github-pages
65+
retention-days: 1
6466

6567
- name: Deploy to GitHub Pages
6668
id: deployment

0 commit comments

Comments
 (0)