Docs #10
Workflow file for this run
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: Deploy Documentation | |
on: | |
push: | |
branches: | |
- development | |
- feat/doc | |
# paths: | |
# - 'pkg/seawater/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl git | |
- name: Install Foundry and Add to PATH | |
run: | | |
curl -L https://foundry.paradigm.xyz | bash | |
echo "$HOME/.foundry/bin" >> $GITHUB_PATH | |
source $HOME/.bashrc | |
foundryup | |
- name: Build documentation | |
run: | | |
cd pkg | |
forge doc | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs-out |