Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jun 11, 2023
1 parent 3075714 commit f55881f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 38 deletions.
44 changes: 7 additions & 37 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,26 @@ on:
- "src/docs/**"

jobs:
setup:
name: "Setup"
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "latest"
registry-url: https://registry.npmjs.org

install-package-dependencies:
name: "Install package dependencies"
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install package dependencies
run: npm install

install-docs-dependencies:
name: "Install docs dependencies"
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install docs dependencies
run: cd src/docs && npm install

build-package:
name: "Build package"
runs-on: ubuntu-latest
needs: [setup, install-package-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: build package
run: npm run build

build-and-deploy-docs:
name: "Build and deploy docs"
runs-on: ubuntu-latest
needs: [build-package, install-docs-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install docs dependencies
run: cd src/docs && npm install

- name: Install alpha daisyUI if staging
if: github.repository == 'daisyui/daisyui.github.io'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "🆕 Release new version"
name: "🎉 Release new version"

on:
workflow_dispatch:
Expand Down

0 comments on commit f55881f

Please sign in to comment.