Skip to content

Commit

Permalink
ci: (re)publish website if no changesets exist
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Dec 16, 2023
1 parent a036c18 commit d9dce6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ jobs:
publish: npm run release

- name: Build website
if: steps.changesets.outputs.published == 'true'
if: steps.changesets.outputs.hasChangesets == 'false'
run: npm run build -w website

- name: Upload website artefacts
if: steps.changesets.outputs.published == 'true'
if: steps.changesets.outputs.hasChangesets == 'false'
uses: actions/upload-pages-artifact@v2
with:
path: './website/dist/'

- name: Deploy website
if: steps.changesets.outputs.published == 'true'
if: steps.changesets.outputs.hasChangesets == 'false'
uses: actions/deploy-pages@v2

0 comments on commit d9dce6b

Please sign in to comment.