We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6798dfd commit c2c7cc2Copy full SHA for c2c7cc2
.github/workflows/deploy-github-pages.yml
@@ -1,15 +1,18 @@
1
-name: Build and Publish Storybook to GitHub Pages
+name: Deploy Storybook to GitHub Pages
2
3
on:
4
push:
5
- branches:
6
- - 'storybook-resurrect'
+ branches: [main] # or your actual default branch
7
8
permissions:
9
contents: read
10
pages: write
11
id-token: write
12
+concurrency:
13
+ group: "storybook"
14
+ cancel-in-progress: false
15
+
16
jobs:
17
build:
18
runs-on: ubuntu-latest
@@ -29,9 +32,11 @@ jobs:
29
32
path: ./storybook-static
30
33
31
34
deploy:
- runs-on: ubuntu-latest
35
needs: build
36
+ runs-on: ubuntu-latest
37
environment:
38
name: github-pages
39
+ url: ${{ steps.deployment.outputs.page_url }}
40
steps:
41
- uses: actions/deploy-pages@v4
42
+ id: deployment
0 commit comments