Skip to content

chore(deps): update jamesives/github-pages-deploy-action action to v4… #2332

chore(deps): update jamesives/github-pages-deploy-action action to v4…

chore(deps): update jamesives/github-pages-deploy-action action to v4… #2332

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- uses: tibdex/github-app-token@v2
id: get_token
with:
app_id: ${{ secrets.PUBLIC_DOC_PUBLISHER_APP_ID }}
private_key: ${{ secrets.PUBLIC_DOC_PUBLISHER_PRIVATE_KEY }}
- name: Install dependencies
run: npm install
- name: Build docs
run: npm run docs-build
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
- name: Copy developer docs to repository
if: github.ref == 'refs/heads/main'
uses: nkoppel/[email protected]
continue-on-error: true
env:
API_TOKEN_GITHUB: ${{ steps.get_token.outputs.token }}
with:
source-files: "developerDocs/"
destination-username: "ProjectOpenSea"
destination-repository: "developer-docs"
destination-directory: "opensea-js"
destination-branch: "main"
commit-username: "ProjectOpenSea-opensea-js"
commit-message: "Latest docs from opensea-js"