swap initial implementation #173
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: Publish Docs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
publish-docs: | |
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' | |
name: Publish Documentation | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
- run: git submodule update --init --recursive | |
- run: cd solidity-fixtures && dvc pull -v && cd .. | |
- run: yarn install --production=false | |
- run: yarn compile | |
- run: yarn build:packages | |
- run: cd ./packages/protocol-solidity && yarn install | |
- name: Generate docs | |
run: | | |
cd ./packages/protocol-solidity && npx typedoc --out docs src/index.ts | |
- name: Deploy docs 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ./packages/protocol-solidity/docs |