Skip to content

deploy to public GH pages #2

deploy to public GH pages

deploy to public GH pages #2

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # Specify your desired Node.js version
cache: 'pnpm'
# Step 3: Install pnpm
- name: Install pnpm
run: npm install -g pnpm
# Step 4: Install dependencies
- name: Install dependencies
run: pnpm install
# Step 5: Run the build script
- name: Build the project
run: pnpm run build
# Step 6: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/idb-cache-app/dist/