Skip to content

Commit

Permalink
Merge pull request #2 from refly-ai/fix/use-pnpm
Browse files Browse the repository at this point in the history
Remove markdown examples and package-lock.json
  • Loading branch information
mrcfps authored Jan 30, 2025
2 parents eab4df6 + 5db7dc5 commit 81cff8a
Show file tree
Hide file tree
Showing 4 changed files with 1,464 additions and 1,611 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.repository == 'refly-ai/refly-docs'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Deploy to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: refly-docs
branch: main
workingDirectory: .
directory: .vitepress/dist
85 changes: 0 additions & 85 deletions markdown-examples.md

This file was deleted.

Loading

0 comments on commit 81cff8a

Please sign in to comment.