Skip to content

Commit

Permalink
fix: re-add action for building and publishing docs [] (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjolton-contentful authored May 29, 2024
1 parent 0011eda commit 40b89e2
Show file tree
Hide file tree
Showing 2 changed files with 1,965 additions and 1,398 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pages-build-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy Docs

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: npm ci

- name: Build Docs
run: npm run build:docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages
Loading

0 comments on commit 40b89e2

Please sign in to comment.