tmp/.github/workflows/upload-doc.yml

35 lines
828 B
YAML
Raw Normal View History

2021-03-11 12:23:31 +05:30
name: Upload Documentation
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
2021-03-11 12:34:06 +05:30
toolchain: stable-x86_64-unknown-linux-gnu
2021-03-11 12:23:31 +05:30
profile: minimal
override: true
- name: generate documentation
2021-06-01 17:19:59 +05:30
if: github.repository == 'mCaptcha/libmcaptcha'
2021-03-11 12:23:31 +05:30
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --workspace --all-features
- name: Deploy to GitHub Pages
2021-06-01 17:19:59 +05:30
if: github.repository == 'mCaptcha/libmcaptcha'
2021-03-11 12:23:31 +05:30
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/doc