New primary drop sales erc721 docs (#407) #383
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Documentation and Push to Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Push | |
steps: | |
- name: git-checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Install dependencies | |
run: | | |
npm install -g [email protected] | |
pnpm install | |
- name: Update API Examples | |
run: | | |
pnpm update-examples | |
- name: Build | |
run: pnpm run build | |
- name: Touch .nojeykll | |
run: touch ./docs/dist/.nojekyll | |
- name: Touch CNAME | |
run: echo "docs.sequence.xyz" > ./docs/dist/CNAME | |
- name: Copy 404 | |
run: cp 404.html ./docs/dist/404.html | |
- name: Push | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
GIT_CLONE_PROTECTION_ACTIVE: false | |
BRANCH: build | |
FOLDER: ./docs/dist | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "Build: ({sha}) {msg}" |