Skip to content

Merge pull request #737 from Stremio/fix/stream-item-state-derive-def… #76

Merge pull request #737 from Stremio/fix/stream-item-state-derive-def…

Merge pull request #737 from Stremio/fix/stream-item-state-derive-def… #76

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- development
jobs:
deploy-docs:
name: Deploy docs on gh-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Rust setup (nightly)
uses: dtolnay/rust-toolchain@master
with:
# Use nightly to build the docs with `--cfg docsrs`
toolchain: nightly
components: rust-docs
- name: Build docs
# Building locally:
# for `--enable-index-page` it is required to pass `-Z unstable-options` to rustdocs
run: RUSTDOCFLAGS="--cfg docsrs -Z unstable-options --enable-index-page" cargo +nightly build-docs
- name: Prepare /docs
run: |
rm -rf ./docs
mv target/doc ./docs
- name: Deploy gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
# we build and publish docs from `development` branch only
destination_dir: ./docs/${{ github.ref_name }}