Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
59 lines (42 loc) · 1.67 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.67 KB

No longer maintained

Use setup-crate instead. For example:

- uses: extractions/setup-crate@v1
  with:
    owner: rust-lang
    name: mdBook

setup-mdbook action

build

This GitHub Action will install the latest release of mdBook for you.

Usage

Inputs

Name Required Description Type Default
mdbook-version no A valid NPM-style semver specification. string *

The semver specification is passed directly to NPM's semver package. This GitHub Action will install the latest matching release. Examples include

  • mdbook-version: '*' latest version (default).
  • mdbook-version: '0.4' equivalent to >=0.4.0 <0.5.0.
  • mdbook-version: '0.4.x' equivalent to >=0.4.0 <0.5.0.
  • mdbook-version: '0.4.6' equivalent to =0.4.6.
  • mdbook-version: '^0.4.6' equivalent to >=0.4.6 <0.5.0.

Basic example

Add the following to your workflow.

- uses: extractions/setup-mdbook@v1
  with:
    mdbook-version: 0.4
  env:
    # this is not required but add it if you get any rate limiting issues
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

License

Licensed under either of

at your option.