Bump codecov/codecov-action from 4 to 5 #96
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: Build and deploy docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
rustdocs: | |
name: Build rustdocs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Install Stable Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Run cargo doc | |
uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --verbose --no-deps --all | |
- name: Move built docs | |
run: | | |
mv ./target/doc/ ./docs/ | |
echo "<meta http-equiv=\"refresh\" content=\"0; url=multilinear_extensions\">" > docs/index.html | |
ls -l ./docs/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
# published only from master AND if the triggerer is not dependabot | |
# https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-797125425 | |
# | |
if: ${{ github.ref == 'refs/heads/master' && github.actor != 'dependabot[bot]' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/ |