This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
Add archive note to README #15
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 | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: rust-toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
profile: minimal | |
- name: Install LLVM tools | |
run: | | |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | |
sudo ln -s /usr/bin/llvm-cov-13 /usr/bin/llvm-cov | |
sudo ln -s /usr/bin/llvm-profdata-13 /usr/bin/llvm-profdata | |
- name: Generate Coverage | |
run: | | |
sh cov.sh --json | |
sh cov.sh --html | |
- name: Move to Deploy Directory | |
run: | | |
mkdir out | |
mv cov.json out/cov.json | |
mv cov/rustc-semver/* out/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out | |
user_name: "GHA CI" | |
user_email: "[email protected]" | |
commit_message: "Automatic deploy of coverage report" |