bump version (#89) #42
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
- docs | |
jobs: | |
test: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest Rust nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-06-23 | |
override: true | |
components: rustfmt, clippy | |
- name: Install ghp-import | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ghp-import | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Build node reference | |
run: | | |
npm install | |
npx typedoc | |
- name: deploy docs | |
run: | | |
mkdir -p target/doc | |
cp -r docs/* target/doc/ | |
echo ghp-import step | |
ghp-import -n target/doc && \ | |
git push -qf https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git gh-pages |