Skip to content

Commit

Permalink
Fix docs deployment github action
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hilaly committed Nov 8, 2024
1 parent 76553a8 commit aad9ff1
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
paths:
- "website/**"

jobs:
build:
Expand All @@ -18,15 +16,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
bun-version: latest
node-version: 18
cache: yarn

- name: Install dependencies
run: bun install --frozen-lockfile

run: yarn install --frozen-lockfile
- name: Build website
run: bun build
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -50,11 +48,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if:
github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./websites/build
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit aad9ff1

Please sign in to comment.