Skip to content

Commit f3a20b4

Browse files
committed
fix(ci): prevent duplicate github-pages artifact on deploy re-run
1 parent 4e3be41 commit f3a20b4

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/deploy-storybook.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ concurrency:
1515
cancel-in-progress: false
1616

1717
jobs:
18-
deploy:
19-
name: GitHub Pages
18+
build:
19+
name: Build Storybook
2020
runs-on: ubuntu-latest
21-
environment:
22-
name: github-pages
23-
url: ${{ steps.deployment.outputs.page_url }}
2421
steps:
2522
- uses: actions/checkout@v6
2623
- uses: actions/setup-node@v6
@@ -33,5 +30,14 @@ jobs:
3330
- uses: actions/upload-pages-artifact@v5
3431
with:
3532
path: apps/storybook/storybook-static
33+
34+
deploy:
35+
name: GitHub Pages
36+
needs: build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
steps:
3642
- id: deployment
3743
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)