From cbb5be45583fbe84c7add7f23862f06dcf28f9b5 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Fri, 23 Aug 2024 04:55:04 +0530 Subject: [PATCH] chore: fix gh action Signed-off-by: Rajiv Ranjan Singh --- .github/workflows/deploy.yaml | 17 +++++++++-------- docusaurus.config.ts | 1 - 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4214656..ca129da 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -4,8 +4,6 @@ on: push: branches: - main - # For more customization options, review the GitHub Actions documentation: - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on jobs: build: @@ -26,7 +24,7 @@ jobs: - name: Set Up Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: "16" # Specify the Node.js version cache: "pnpm" - name: Install Dependencies @@ -43,18 +41,21 @@ jobs: 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 - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout Repository + uses: actions/checkout@v4 - runs-on: ubuntu-latest + - name: Download Build Artifact + uses: actions/download-pages-artifact@v3 - steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/docusaurus.config.ts b/docusaurus.config.ts index d7b5fd5..398e388 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -6,7 +6,6 @@ const config: Config = { title: 'Ramanujan Society', tagline: 'Ramanujan Society Documentation', favicon: 'img/favicon.ico', - // Set the production url of your site here url: 'https://ramanujansociety.github.io',