Skip to content

Commit 117c25a

Browse files
committed
☕ Refine GitHub Actions
1 parent 983bb1d commit 117c25a

File tree

4 files changed

+20
-39
lines changed

4 files changed

+20
-39
lines changed

.github/workflows/mdbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
44
#
5-
name: Deploy mdBook site to Pages
5+
name: Deploy
66

77
on:
88
# Runs on pushes targeting the default branch
@@ -37,7 +37,7 @@ jobs:
3737
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
3838
rustup update
3939
cargo install --version ${MDBOOK_VERSION} mdbook
40-
cargo install mdbook-plantuml
40+
cargo install mdbook-alerts
4141
- name: Setup Pages
4242
id: pages
4343
uses: actions/configure-pages@v4

.github/workflows/reviewdog.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ name: Test
22

33
env:
44
DENO_VERSION: 1.x
5+
MDBOOK_VERSION: 0.4.36
56

67
on:
78
push:
8-
branches:
9-
- main
109
pull_request:
11-
branches:
12-
- main
1310

1411
jobs:
1512
test:
16-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1714
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/cache@v2
15+
- uses: actions/checkout@v4
16+
- uses: actions/cache@v4
2017
with:
2118
path: |
2219
~/.cargo/bin/
@@ -26,17 +23,18 @@ jobs:
2623
target/
2724
.tools/
2825
key: ${{ runner.os }}-cargo
29-
- uses: denoland/setup-deno@main
26+
- uses: denoland/setup-deno@v1.1.4
3027
with:
3128
deno-version: ${{ env.DENO_VERSION }}
32-
- uses: actions-rs/toolchain@v1
33-
with:
34-
toolchain: stable
35-
- name: Format
36-
run: make fmt-check
37-
- name: Install tools
38-
run: make tools
39-
- name: Generate
29+
- name: Install mdBook
4030
run: |
41-
make gen
42-
git diff --check
31+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
32+
rustup update
33+
cargo install --version ${MDBOOK_VERSION} mdbook
34+
cargo install mdbook-alerts
35+
- name: Build with mdBook
36+
run: mdbook build
37+
- name: Format
38+
run: deno fmt --check
39+
- name: Misspell
40+
uses: reviewdog/[email protected]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Denops Documentation
1+
# denops-documentation
22

33
[![Test](https://github.com/vim-denops/denops-documentation/actions/workflows/test.yml/badge.svg)](https://github.com/vim-denops/denops-documentation/actions/workflows/test.yml)
4+
[![Deploy](https://github.com/vim-denops/denops-documentation/actions/workflows/mdbook.yml/badge.svg)](https://github.com/vim-denops/denops-documentation/actions/workflows/mdbook.yml)
45
[![Documentation](https://img.shields.io/badge/denops-Documentation-yellow.svg)](https://vim-denops.github.io/denops-documentation/)
56

67
This is an official documentation of [denops.vim], an ecosystem of Vim/Neovim

0 commit comments

Comments
 (0)