Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Sep 14, 2024
1 parent 44b7f1a commit db7de30
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
options:
- "bun"
- "npm"
daisyuiversion:
type: choice
description: DaisyUI release tag
default: "latest"
options:
- "latest"
- "alpha"
workflow_call:
inputs:
daisyuiversion:
Expand Down Expand Up @@ -69,7 +76,13 @@ jobs:

- name: Install daisyUI newest tag if staging
if: github.repository == 'daisyui/daisyui.github.io'
run: cd src/docs && ${{ env.runtime }} i daisyui@$([[ $(npm view daisyui version) > $(npm view daisyui dist-tags.alpha) ]] && echo "${{env.daisyuiversion}}" || echo "alpha")
run: |
cd src/docs
if [ "${{env.daisyuiversion}}" = "latest" ]; then
${{ env.runtime }} i daisyui@$([[ $(npm view daisyui version) > $(npm view daisyui dist-tags.alpha) ]] && echo "latest" || echo "alpha")
else
${{ env.runtime }} i daisyui@${{env.daisyuiversion}}
fi
- name: Set daisyUI version in env file if staging
if: github.repository == 'daisyui/daisyui.github.io'
Expand Down

0 comments on commit db7de30

Please sign in to comment.