Skip to content

Commit

Permalink
ci: execute docs publishing step only when new release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
RuggeroVisintin committed Dec 10, 2023
1 parent 837a922 commit c633a7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ jobs:
- name: install
run: npm ci
- name: build docs
# if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created }}
run: |
npm run build:docs
- name: Setup Pages
# if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created }}
uses: actions/configure-pages@v4
- name: upload docs artifact
# if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created }}
uses: actions/upload-pages-artifact@v2
with:
path: "docs/"
- name: deploy docs artifact
# if: ${{ steps.release.outputs.release_created }}
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 c633a7a

Please sign in to comment.