Skip to content

Commit

Permalink
ci: fix website deploy on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Dec 11, 2023
1 parent 79ae014 commit 0f9608e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-kiwis-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tings': patch
---

Non-release: testing CI.
10 changes: 5 additions & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ jobs:
commit: 'chore: version package'
publish: npm run release

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

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

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

0 comments on commit 0f9608e

Please sign in to comment.