Skip to content

Commit d85ae8f

Browse files
authored
match CI workflows to frequency-docs (#203)
* match CI workflows to frequency-docs * remove obsolete worklfows
1 parent be8da0f commit d85ae8f

File tree

5 files changed

+81
-81
lines changed

5 files changed

+81
-81
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Install mdBook with Plugins"
2+
description: 'Shared action steps to install mdBook with required plugins'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup mdBook 📚
7+
uses: peaceiris/actions-mdbook@v1
8+
with:
9+
mdbook-version: 'latest'
10+
11+
- name: Install mdbook-linkcheck plugin
12+
shell: bash
13+
run: |
14+
curl -s https://api.github.com/repos/Michael-F-Bryan/mdbook-linkcheck/releases/latest \
15+
| grep browser_download_url \
16+
| grep $(rustc -Vv | grep host | cut -d' ' -f2) \
17+
| cut -d : -f 2,3 \
18+
| tr -d \" \
19+
| wget -qi - -O mdbook-linkcheck.zip
20+
21+
unzip mdbook-linkcheck.zip -d mdbook-linkcheck
22+
chmod +x mdbook-linkcheck/mdbook-linkcheck
23+
echo "$PWD/mdbook-linkcheck" >> $GITHUB_PATH
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9][0-9]'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
steps:
15+
- name: Checkout 🛎️
16+
uses: actions/checkout@v3
17+
18+
- name: Set up mdBook 📚
19+
uses: ./.github/workflows/common/set-up-mdbook
20+
21+
- name: Build mdBook 📚
22+
run: mdbook build
23+
24+
- name: Deploy to GitHub Pages 🚀
25+
uses: JamesIves/[email protected]
26+
with:
27+
branch: gh-pages
28+
folder: ./book/html

.github/workflows/mdbook_cd.yml

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

.github/workflows/mdbook_ci.yml

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

.github/workflows/verify-pr.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Verify PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
verify:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v3
14+
15+
- name: Use Node.js 🐰
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16
19+
20+
- name: Install Node Modules 💾
21+
run: npm ci
22+
23+
- name: Lint and Spellcheck 🧶
24+
run: npm run lint
25+
26+
- name: Set up mdBook 📚
27+
uses: ./.github/workflows/common/set-up-mdbook
28+
29+
- name: Build mdBook 📚
30+
run: mdbook build

0 commit comments

Comments
 (0)