feat: add DemoTeaser component to showcase Duck-UI; update Docusaurus… #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Duck-UI Docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "docs/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: npm | |
cache-dependency-path: docs/package-lock.json | |
- name: Install dependencies | |
run: | | |
cd docs | |
npm ci | |
- name: Build website | |
run: | | |
cd docs | |
npm run build | |
# Docusaurus builds to build directory instead of out | |
- name: Add .nojekyll file | |
run: touch docs/build/.nojekyll | |
- name: Create CNAME file | |
run: echo "duckui.com" > docs/build/CNAME | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GHCR_PAT }} | |
publish_dir: ./docs/build # Docusaurus outputs to build directory | |
user_name: ${{ secrets.GIT_USER_NAME }} | |
user_email: ${{ secrets.GIT_USER_EMAIL }} |