Skip to content

Commit

Permalink
fix(repo): Fix Storybook deployment and trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Dec 18, 2024
1 parent 9f433e0 commit 33cc641
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-sync-master-with-develop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto Sync Master with Develop
name: 'Auto Sync `master` with `develop`'

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build 🏗️
name: 'Build 🏗️'

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: clean 🧹
name: 'Clean 🧹'

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate PR Title
name: 'Validate PR Title'

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'scan 🔎'
name: 'Scan 🔎'

on:
pull_request:
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/deploy-storybook-docs.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: publish
name: 'Publish Storybook Docs 📚'

on:
push:
branches:
- develop
- feature/**

paths: [
'libs/webb-ui-components/src/stories/**',
'libs/webb-ui-components/.storybook/**',
'.storybook',
] # Trigger the action only when files change in the folders defined here

workflow_dispatch:

jobs:
component-docs:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['>=18.12.x']

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand Down Expand Up @@ -42,6 +48,13 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ~/work/webb-dapp/webb-dapp/dist/storybook/webb-ui-components/ # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch

# The branch the action should deploy to.
BRANCH:
gh-pages

# The folder that the build-storybook script generates files.
FOLDER: ~/work/dapp/dapp/dist/storybook/webb-ui-components/

# Automatically remove deleted files from the deploy branch
CLEAN: true
2 changes: 1 addition & 1 deletion .github/workflows/inactive-issue.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Close inactive issues
name: 'Close Inactive Issues'
on:
schedule:
# the workflow will run every day at 12:00 UTC
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Release'
name: 'Release 🚀'
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test 🧪
name: 'Test 🧪'

on:
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const Template = (args) => <AddressChip {...args} />;

export const Default = Template.bind({});
Default.args = {
address: '0x958aa9ddbd62f989dec2fd1468bf436aebeb8be6',
address: '0x2DFA35bd8C59C38FB3eC4e71b0106160E130A40E',
};

export const NoteAccount = Template.bind({});
NoteAccount.args = {
address: '0x958aa9ddbd62f989dec2fd1468bf436aebeb8be6',
address: '0x2DFA35bd8C59C38FB3eC4e71b0106160E130A40E',
isNoteAccount: true,
};

0 comments on commit 33cc641

Please sign in to comment.