ci: Re-indent docs.yaml

This commit is contained in:
Jonas Platte 2021-04-22 14:06:16 +02:00
parent dbb57f1dca
commit b91078ac55
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -1,29 +1,29 @@
on:
push:
branches: [main]
push:
branches: [main]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install nightly rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
# Needed for use of unstable options
toolchain: nightly
override: true
- name: Build docs
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs"
with:
command: doc
args: --no-deps --workspace --exclude xtask --features full,compat,unstable-pre-spec -Zrustdoc-map
- name: Deploy to docs branch
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: docs
folder: target/doc
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install nightly rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
# Needed for use of unstable options
toolchain: nightly
override: true
- name: Build docs
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs"
with:
command: doc
args: --no-deps --workspace --exclude xtask --features full,compat,unstable-pre-spec -Zrustdoc-map
- name: Deploy to docs branch
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: docs
folder: target/doc