Skip to content

Commit

Permalink
chore(action): split publish docs site of released version into separ…
Browse files Browse the repository at this point in the history
…ate job
  • Loading branch information
venikx committed Jun 5, 2023
1 parent f9cdb56 commit cbb91c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
release_or_publish_package:
name: Release & Publish to NPM Registry
runs-on: ubuntu-latest
outputs:
was_published: ${{ steps.changesets.outputs.published }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -32,8 +34,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish Released Documentation
if: steps.changesets.outputs.published == 'true'
uses: ./.github/workflows/github-pages.yml
with:
version_to_deploy: 'latest'
publish_released_docs:
needs: release_or_publish_package
if: needs.release_or_publish_package.outputs.was_published == 'true'
uses: ./.github/workflows/github-pages.yml
with:
version_to_deploy: 'latest'

0 comments on commit cbb91c9

Please sign in to comment.