This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Add test coverage reporting (#162) #78
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: api rust doc | |
on: | |
push: | |
branches: [ "main" ] | |
permissions: {} | |
jobs: | |
deploy: | |
permissions: | |
contents: write # to push pages branch (peaceiris/actions-gh-pages) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build api rust doc | |
run: cargo doc --no-deps --package chiquito | |
- name: Add index.html file to docs root | |
run: | | |
mkdir -p ./target/doc | |
echo '<meta http-equiv="refresh" content="0; url=chiquito">' > ./target/doc/index.html | |
- name: Add CNAME file to docs root | |
run: | | |
mkdir -p ./target/doc | |
echo 'apidocs.pecadorplonkish.xyz' > ./target/doc/CNAME | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc | |
destination_dir: ./docs |