Skip to content

Commit

Permalink
ci(Storybook): always build documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Loxeris committed Aug 27, 2024
1 parent 08022bf commit 60098da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
permissions:
id-token: write
pages: write
if: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/diracx-web' && github.ref_name == 'main'}}
if: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/diracx-web' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -68,10 +68,15 @@ jobs:
cache: 'npm'

- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
if: ${{ github.ref_name == 'main' }}
with:
build_command: npm run build-storybook -w @dirac-grid/diracx-web-components
path: packages/diracx-web-components/storybook-static
checkout: false

- name: Build documentation
if: ${{ github.ref_name != 'main' }}
run: npm ci && npm run build-storybook -w @dirac-grid/diracx-web-components

build-deploy-dev-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 60098da

Please sign in to comment.