Skip to content

Commit f581c29

Browse files
committed
Added new install rust action & workflow_dispatch
1 parent 5abb4ed commit f581c29

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/docs.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
name: build and deploy docs
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
# - master
78
- fix-docs-build
8-
paths:
9-
- "docs/**"
9+
# paths:
10+
# - "docs/**"
1011

1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415

1516
steps:
16-
- name: Checkout Repository
17+
- name: 📥 Checkout Repository
1718
uses: actions/checkout@v2
1819

19-
- name: Setup Rust
20-
uses: dtolnay/rust-toolchain@stable
20+
- name: 🦀 Install Rust
21+
uses: actions-rs/toolchain@v1
2122
with:
23+
profile: minimal
24+
toolchain: stable
2225
components: clippy
2326

24-
- name: Install mdbook
27+
- name: 📚 Install mdbook
2528
run: |
2629
cargo install mdbook
2730
28-
- name: Build mdBook
31+
- name: 📖 Build mdBook
2932
working-directory: docs
3033
run: |
3134
mdbook build
3235
33-
# - name: Copy CNAME file
36+
# - name: 📄 Copy CNAME file
3437
# working-directory: docs
3538
# run: |
3639
# cp CNAME ./book/
3740

38-
# - name: Deploy to GitHub Pages
41+
# - name: 📤 Deploy to GitHub Pages
3942
# uses: peaceiris/actions-gh-pages@v3
4043
# with:
4144
# github_token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)