Skip to content

Commit 094cd50

Browse files
committed
PB-25272: github actions updates for storybook
1 parent fe79f28 commit 094cd50

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: Release notes
12
on:
23
push:
34
tags:

.github/workflows/storybook.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
name: Build and Deploy
1+
name: Build and Deploy storybook
22
on:
33
push:
4-
paths: ["src/stories/**", "src/components/**"] # Trigger the action only when files change in the folders defined here
4+
tags:
5+
- "*"
6+
permissions:
7+
contents: write
58
jobs:
69
build-and-deploy:
710
runs-on: ubuntu-latest
811
steps:
912
- name: Checkout 🛎️
10-
uses: actions/checkout@v2.3.1
13+
uses: actions/checkout@v3
1114
with:
1215
persist-credentials: false
1316
- name: Install and Build 🔧
@@ -17,10 +20,9 @@ jobs:
1720
npx grunt css
1821
npm run dev:storybook:build
1922
- name: Deploy 🚀
20-
uses: JamesIves/github-pages-deploy-action@3.6.2
23+
uses: JamesIves/github-pages-deploy-action@v4
2124
with:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
BRANCH: gh-pages
24-
FOLDER: storybook-static # The folder that the build-storybook script generates files.
25-
CLEAN: true # Automatically remove deleted files from the deploy branch
26-
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
branch: gh-pages
27+
folder: storybook-static # The folder that the build-storybook script generates files.
28+
clean: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)