Skip to content

Commit

Permalink
chore: gh pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Oct 24, 2024
1 parent dba8dc1 commit 0bc2c80
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GitHub Pages

on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy from"
required: true
default: "main"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js (required if you're using a static site generator)
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies with pnpm
run: pnpm install

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./e2e/dist # Path to your custom folder

0 comments on commit 0bc2c80

Please sign in to comment.