Skip to content

Commit

Permalink
test(ci): update GitHub Pages workflow for Docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
UmmItC committed Nov 25, 2024
1 parent 365171d commit 4c42f3b
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ on:
branches: [master]
workflow_dispatch:

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

jobs:
build:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
Expand All @@ -19,14 +24,20 @@ jobs:
node-version: 20
cache: 'yarn'

- name: Install Dependencies
- name: Install dependencies
run: yarn install

- name: Build Website
- name: Build website
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
- name: Configure Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
path: build

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 4c42f3b

Please sign in to comment.