Skip to content

Commit

Permalink
fix(workflows): use correct netlify.config.json to deploy preview site (
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch authored Jul 11, 2024
1 parent c93395b commit 12c69f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Build documentation & dependencies
run: pnpm --filter design-system-documentation... build

- name: Add netlify.config.json to artifact folder
run: cp packages/documentation/netlify.config.json packages/documentation/storybook-static/netlify.config.json

- name: Upload documentation
uses: ./.github/actions/artifact-upload
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
with:
script: |
const fs = require('fs')
return JSON.parse(fs.readFileSync('./packages/documentation/netlify.config.json', 'utf8'))
return JSON.parse(fs.readFileSync('./${{ steps.build.outputs.folder }}/netlify.config.json', 'utf8'))
- name: Remove netlify.config.json from artifact folder
run: rm ${{ steps.build.outputs.folder }}/netlify.config.json

- name: Deploy Documentation Preview
id: deploy
Expand Down

0 comments on commit 12c69f9

Please sign in to comment.