forked from greshake/i3status-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1 KB
/
docs.yml
File metadata and controls
38 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Docs
on:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
default:
runs-on: ubuntu-latest
steps:
- name: Version information
run: rustc --version; cargo --version
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libsensors-dev libssl-dev libpulse-dev libnotmuch-dev
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Generate docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --no-deps
- name: Create index.html
run: echo "<meta http-equiv=\"Refresh\" content=\"0; url='/i3status-rust/i3status_rs'\" />" > target/doc/index.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: target/doc # The folder the action should deploy.