Skip to content

Commit

Permalink
fix: docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 4, 2023
1 parent 913b1e1 commit aa82487
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Publish as version:'
required: true
latest:
description: 'Override latest version[true/FALSE]:'
default: false
description: 'Publish as version[?]:'
default: 'latest'


permissions:
contents: write
Expand Down Expand Up @@ -38,6 +36,7 @@ jobs:

- name: Deploy to ${{ github.event.inputs.version }}
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event.inputs.version != 'latest' }}
with:
folder: ./docs/.vitepress/dist
branch: gh-pages
Expand All @@ -51,7 +50,7 @@ jobs:
run: yarn docs:build

- name: Deploy to latest
if: ${{ github.event.inputs.latest == 'true' }}
if: ${{ github.event.inputs.version == 'latest' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/.vitepress/dist
Expand Down

0 comments on commit aa82487

Please sign in to comment.