Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for build and deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
apetta committed Dec 17, 2024
1 parent 6af1a32 commit 8d719cb
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build Package
run: pnpm run ci

- name: Build Docs
run: pnpm build:docs

- name: Upload docs to GH Pages Artifact
uses: actions/upload-pages-artifact@v3
id: docs
with:
path: ./docs

docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.docs.outputs.page_url }}
needs: deploy
steps:
- name: Deploy docs to GitHub Pages 🚀
id: docs
uses: actions/deploy-pages@v4

0 comments on commit 8d719cb

Please sign in to comment.