Skip to content

Commit

Permalink
chore: fix gh action
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Ranjan Singh <[email protected]>
  • Loading branch information
iamrajiv committed Aug 22, 2024
1 parent 48744a1 commit 1fb6764
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 92 deletions.
64 changes: 8 additions & 56 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,62 +1,14 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
name: CI
on: [push]

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Set Up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest

permissions:
pages: write # Required to deploy to Pages
id-token: write # Required to verify the deployment source

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Download Build Artifact
uses: actions/download-artifact@v3

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- uses: actions/checkout@master
- uses: redkubes/docusaurus-deploy-action@v1
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: ./build
publish_branch: gh-pages
source-folder: website
git-user: $SOME_USERNAME
git-password: ${{ secrets.GITHUB_TOKEN }}
deployment-branch: gh-pages
36 changes: 0 additions & 36 deletions .github/workflows/test-deploy.yaml

This file was deleted.

0 comments on commit 1fb6764

Please sign in to comment.