Skip to content

Commit

Permalink
feat: github action to integrate/publish endo reference doc too
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqiPan committed Mar 26, 2024
1 parent 47db2aa commit 649e426
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 57 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-deploy-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Deploy documentation site

on: [push]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout
uses: actions/checkout@v4
with:
repository: endojs/endo
path: endo

- name: Install and Build endo docs
run: |
cd endo
yarn install
yarn docs
- name: Move Endo docs into main
run: mv endo/api-docs main/reference/endo

- name: Build Doc site
run: |
yarn install
yarn docs:build-cf
# Based on https://github.com/cloudflare/wrangler-action?tab=readme-ov-file#deploy-your-pages-site-production--preview
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --project-name=documentation
57 changes: 0 additions & 57 deletions .github/workflows/build-deploy-doc.yml.DISABLED

This file was deleted.

0 comments on commit 649e426

Please sign in to comment.