Skip to content

Commit

Permalink
deploy to public GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 15, 2024
1 parent ff01e5d commit a345949
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 27 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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/
27 changes: 0 additions & 27 deletions .github/workflows/playwright.yml

This file was deleted.

0 comments on commit a345949

Please sign in to comment.