Skip to content

Changelog #328

Changelog #328 #927

Workflow file for this run

name: CI
on:
push:
branches:
- src
schedule:
# Every day, to pick up the latest rust-analyzer repo changes.
- cron: "0 0 * * *"
workflow_dispatch:
env:
CARGO_INCREMENTAL: 0
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
- run: bundle install && bundle exec jekyll build
- uses: taiki-e/install-action@v2
with:
tool: mdbook@0.5
- name: Clone the rust-analyzer repository
run: git clone --depth 1 https://github.com/rust-lang/rust-analyzer
- name: Update Rust toolchain
run: rustup update stable
- name: Build generated.md files
run: cd rust-analyzer && cargo xtask codegen
- name: Run mdbook
run: cd rust-analyzer/docs/book && mdbook build
- name: Include mdbook output
run: mv rust-analyzer/docs/book/book _site
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
publish_dir: _site
force_orphan: true