diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 7788b89571a..c69ce8702a9 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -32,6 +32,8 @@ on: jobs: deploy-docs: runs-on: ubuntu-latest + env: + runtime: ${{ !github.event.inputs.runtime && 'bun'}} if: | github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || @@ -42,33 +44,33 @@ jobs: uses: actions/checkout@v3 - name: Setup Node - if: github.event.inputs.runtime == 'npm' + if: env.runtime == 'npm' uses: actions/setup-node@v3 with: node-version: "latest" registry-url: https://registry.npmjs.org - name: Setup bun - if: github.event.inputs.runtime == 'bun' + if: env.runtime == 'bun' uses: oven-sh/setup-bun@v1 - name: Install package dependencies - run: ${{ github.event.inputs.runtime }} install + run: ${{ env.runtime }} install - name: Build package (skip cdn file) - run: ${{ github.event.inputs.runtime }} run build:skipcdnfiles + run: ${{ env.runtime }} run build:skipcdnfiles - name: Install docs dependencies - run: cd src/docs && ${{ github.event.inputs.runtime }} install + run: cd src/docs && ${{ env.runtime }} install - name: Install daisyUI - run: cd src/docs && ${{ github.event.inputs.runtime }} i daisyui@${{ github.event.inputs.npm-tag }} + run: cd src/docs && ${{ env.runtime }} i daisyui@${{ github.event.inputs.npm-tag }} - name: Get new data from API - run: cd src/docs && ${{ github.event.inputs.runtime }} run get-files + run: cd src/docs && ${{ env.runtime }} run get-files - name: Build docs - run: cd src/docs && ${{ github.event.inputs.runtime }} run build + run: cd src/docs && ${{ env.runtime }} run build - name: Deploy docs to github pages uses: peaceiris/actions-gh-pages@v3 diff --git a/src/docs/src/lib/json/.gitkeep b/src/docs/src/lib/json/.gitkeep index e69de29bb2d..8b137891791 100644 --- a/src/docs/src/lib/json/.gitkeep +++ b/src/docs/src/lib/json/.gitkeep @@ -0,0 +1 @@ +