Skip to content

Commit

Permalink
fix: action to deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Dec 22, 2022
1 parent 18d96a0 commit 64222ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
description: 'Publish as version:'
required: true
latest:
description: 'Override latest version:'
required: true

description: 'Override latest version[true/FALSE]:'
default: false

permissions:
contents: write
Expand Down Expand Up @@ -42,6 +41,7 @@ jobs:
with:
folder: ./docs/.vitepress/dist
branch: gh-pages
# Specific folder for this version
target-folder: ${{ github.event.inputs.version }}
clean: true
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,8 +52,8 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/.vitepress/dist
target-folder: docs # To use the docs folder of github pages
clean: true
clean-exclude: v*
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Deploy docs for latest"
commit-message: "Deploy docs for latest"

0 comments on commit 64222ec

Please sign in to comment.