Skip to content

Commit

Permalink
ci: add publish docs to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RuggeroVisintin committed Dec 10, 2023
1 parent 776dd4d commit 049a2b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ jobs:
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.GITHUB_TOKEN }}
- name: build docs
if: ${{ steps.release.outputs.release_created }}
run: |
npm run build:docs
- name: upload docs artifact
if: ${{ steps.release.outputs.release_created }}
uses: actions/upload-pages-artifact@v2
- name: deploy docs artifact
if: ${{ steps.release.outputs.release_created }}
uses: actions/deploy-pages@v3
needs: [test_unit, test_visual, build]
if: github.ref_name == 'main'

Expand Down

0 comments on commit 049a2b9

Please sign in to comment.