Skip to content

Commit

Permalink
chore: github page checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Oct 24, 2024
1 parent 0bc2c80 commit 1cfbf88
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ on:
description: "Branch to deploy from"
required: true
default: "main"

permissions:
id-token: write
contents: read
pages: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }} # Use the selected branch

- name: Set up Node.js (required if you're using a static site generator)
uses: actions/setup-node@v2
Expand All @@ -23,10 +31,16 @@ jobs:
run: npm install -g pnpm

- name: Install dependencies with pnpm
run: pnpm install
run: pnpm install --no-frozen-lockfile

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./e2e/dist # Path to your custom folder
# upload entire directory
path: "./e2e/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 1cfbf88

Please sign in to comment.