Skip to content

Commit

Permalink
✨ documentation site
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmohiburrahman committed Jul 8, 2024
1 parent 459fc3d commit 74840c7
Show file tree
Hide file tree
Showing 45 changed files with 12,650 additions and 2,929 deletions.
File renamed without changes.
66 changes: 66 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: documentation

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
checks:
name: Run Build Check
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile --strict-peer-dependencies

- name: Build website
run: cd website/similar-react-native-libraries && pnpm build

deploy:
name: Deploy to GitHub Pages
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install --recursive --strict-peer-dependencies

- name: Build website
run: cd website/similar-react-native-libraries && pnpm build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: website/similar-react-native-libraries/build
user_name: mrpmohiburrahman
user_email: [email protected]
Loading

0 comments on commit 74840c7

Please sign in to comment.