Skip to content

Bump mozilla-actions/sccache-action from 0.0.3 to 0.0.7 #27

Bump mozilla-actions/sccache-action from 0.0.3 to 0.0.7

Bump mozilla-actions/sccache-action from 0.0.3 to 0.0.7 #27

Workflow file for this run

name: Documentation
on:
push:
branches: [ main ]
paths:
- "plugins/*/crates/**/*.rs"
- "plugins/*/crates/*/Cargo.toml"
- "Cargo.toml"
- ".github/workflows/docs.yml"
pull_request:
branches: [ main ]
paths:
- "plugins/*/crates/*/*.rs"
- "plugins/*/crates/*/Cargo.toml"
- "Cargo.toml"
- ".github/workflows/docs.yml"
env:
CARGO_TERM_COLOR: always
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: VCS Checkout
uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
components: rustfmt, rust-src
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Yarn
uses: borales/actions-yarn@v4
with:
cmd: --cwd plugins/graphql-client/web install
- name: Install Yarn
uses: borales/actions-yarn@v4
with:
cmd: --cwd plugins/graphql-schema-visualization/web install
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
env:
RUSTDOCFLAGS: --enable-index-page -Zunstable-options
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
destination_dir: docs
# keep_files: true