doc builds on stable

This commit is contained in:
Aravinth Manivannan 2021-03-11 12:34:06 +05:30
parent 3e92df14e2
commit 46f318482f
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -14,19 +14,19 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-x86_64-unknown-linux-gnu
toolchain: stable-x86_64-unknown-linux-gnu
profile: minimal
override: true
- name: generate documentation
if: matrix.version == 'stable' && (github.repository == 'mCaptcha/mCaptcha')
if: github.repository == 'mCaptcha/mCaptcha'
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --workspace --all-features
- name: Deploy to GitHub Pages
if: matrix.version == 'stable' && (github.repository == 'mCaptcha/mCaptcha')
if: github.repository == 'mCaptcha/mCaptcha'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}