Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jul 10, 2022
1 parent 8d4a174 commit 4354d5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
with:
release-type: node
package-name: release-please-action
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 14
Expand Down Expand Up @@ -46,9 +48,11 @@ jobs:
then
echo "Publishing latest"
echo ::set-output name=tag::"latest"
echo ::set-output name=docs::"1"
else
echo "Publishing hotfix"
echo ::set-output name=tag::"hotfix"
echo ::set-output name=docs::"0"
fi
fi
Expand All @@ -67,12 +71,12 @@ jobs:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate docs
if: ${{ steps.do-publish.outputs.tag } && ${{ steps.do-publish.outputs.tag }} == 'latest'
if: ${{ steps.do-publish.outputs.docs }}
run: |
yarn docs:html
- name: Publish docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ steps.do-publish.outputs.tag } && ${{ steps.do-publish.outputs.tag }} == 'latest'
if: ${{ steps.do-publish.outputs.docs }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

0 comments on commit 4354d5b

Please sign in to comment.