File tree Expand file tree Collapse file tree 2 files changed +27
-30
lines changed Expand file tree Collapse file tree 2 files changed +27
-30
lines changed Original file line number Diff line number Diff line change 11name : Build and Deploy
22on :
3- push :
4- paths : [" src/**", " .storybook/**" ] # Trigger the action only when files change in the folders defined here
3+ push :
4+ paths : [' src/**', ' .storybook/**' ] # Trigger the action only when files change in the folders defined here
55jobs :
6- build-and-deploy :
7- runs-on : ubuntu-latest
8- steps :
9- - name : Checkout 🛎️
10- uses : actions/checkout@v3
11- with :
12- persist-credentials : false
13- - name : Install and Build 🔧
14- run : | # Install npm packages and build the Storybook files
15- npm install --force
16- npm run build-storybook
17- - name : Deploy 🚀
18- uses : JamesIves/github-pages-deploy-action@v4
19- with :
20- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21- BRANCH : docs # The branch the action should deploy to.
22- FOLDER : docs-build # The folder that the build-storybook script generates files.
23- CLEAN : true # Automatically remove deleted files from the deploy branch
24- TARGET_FOLDER : docs # The folder that we serve our Storybook files from
6+ build-and-deploy :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout 🛎️
10+ uses : actions/checkout@v3
11+ with :
12+ persist-credentials : false
13+ - name : Install and Build 🔧
14+ run : | # Install npm packages and build the Storybook files
15+ npm install --force
16+ npm run build-storybook
17+ - name : Get commit info
18+ shell : bash
19+ run : |
20+ echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
21+ - name : Deploy 🚀
22+ uses : crazy-max/ghaction-github-pages@v3
23+ with :
24+ target_branch : docs
25+ build_dir : docs-build
26+ commit_message : ' Deploying to docs from ${{ env.sha_short }}'
27+ keep_history : false
28+ jekyll : false
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22# yarn lockfile v1
33
4- " @aashutoshrathi/word-wrap@^1.2.3 " :
5- version "1.2.6"
6- resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"
7- integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==
8-
9- " @adobe/css-tools@^4.3.1 " :
10- version "4.3.2"
11- resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.2.tgz#a6abc715fb6884851fca9dad37fc34739a04fd11"
12- integrity sha512-DA5a1C0gD/pLOvhv33YMrbf2FK3oUzwNl9oOJqE4XVjuEtt6XIakRcsd7eLiOSPkp1kTRQGICTA8cKra/vFbjw==
134
145" @ampproject/remapping@^2.2.0 " :
156 version "2.2.1"
You can’t perform that action at this time.
0 commit comments