-
Notifications
You must be signed in to change notification settings - Fork 969
49 lines (43 loc) · 1.32 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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@v3
with:
node-version-file: .nvmrc
cache: npm
- uses: opensea-public-docs-publisher
id: get_token
with:
app_id: 409633
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/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: docs
- name: Copy developer docs to repository
if: github.ref == 'refs/heads/main'
uses: nkoppel/push-files-to-another-repository@v1.1.1
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"