Skip to content

Commit

Permalink
ci: updates deploy assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 24, 2023
1 parent 3e8468e commit c4789d9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,23 @@ jobs:
- uses: bahmutov/npm-install@v1
# Build Storybook v2
- run: yarn build-storybook
- run: mkdir -p deploy-${{ steps.branch-name.outputs.current_branch }}/storybook-${{ steps.branch-name.outputs.current_branch }}
- run: cp -R ./storybook-static/. ./deploy-${{ steps.branch-name.outputs.current_branch }}/storybook-${{ steps.branch-name.outputs.current_branch }}
# Add json to fetch for suggester stories
- run: cp -a ./public/. ./deploy-${{ steps.branch-name.outputs.current_branch }}/storybook-${{ steps.branch-name.outputs.current_branch }}
- run: cp -a ./public/. ./storybook-static
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
destination_dir: /storybook-${{ steps.branch-name.outputs.current_branch }}
- name: build docs website
working-directory: ./docs/
run: yarn install --frozen-lockfile && yarn build
- run: cp -a ./docs/build/. ./deploy-${{ steps.branch-name.outputs.current_branch }}/docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deploy-${{ steps.branch-name.outputs.current_branch }}
keep_files: true
publish_dir: ./docs/build
destination_dir: /docs

check_if_version_upgraded:
name: Check if version upgrade
Expand Down

0 comments on commit c4789d9

Please sign in to comment.