Skip to content

Commit 0f2215e

Browse files
committed
ci: Update ci.yml to install necessary packages with pip 🤞
Signed-off-by: Jared Rummler <[email protected]>
1 parent 8471415 commit 0f2215e

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.github/workflows/ci.yml

+29-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1-
name: ci
1+
name: Build and Deploy MkDocs Site
2+
23
on:
34
push:
45
branches:
56
- main
6-
permissions:
7-
contents: write
7+
88
jobs:
9-
deploy:
9+
build-and-deploy:
1010
runs-on: ubuntu-latest
11+
1112
steps:
12-
- uses: actions/checkout@v4
13-
- name: Configure Git Credentials
14-
run: |
15-
git config user.name github-actions[bot]
16-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17-
- uses: actions/setup-python@v5
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.x
20-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21-
- uses: actions/cache@v4
19+
python-version: '3.x'
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install mkdocs
24+
pip install mkdocs-material
25+
pip install pymdown-extensions
26+
pip install mkdocs-minify-plugin
27+
pip install neoteroi-mkdocs
28+
pip install mkdocs-git-revision-date-localized-plugin
29+
30+
- name: Build MkDocs site
31+
run: mkdocs build
32+
33+
- name: Deploy GitHub Pages
34+
uses: JamesIves/github-pages-deploy-action@releases/v3
2235
with:
23-
key: mkdocs-material-${{ env.cache_id }}
24-
path: .cache
25-
restore-keys: |
26-
mkdocs-material-
27-
- run: pip install mkdocs-material
28-
- run: mkdocs gh-deploy --force
36+
BRANCH: gh-pages
37+
FOLDER: site
38+
SINGLE_COMMIT: true

mkdocs.yml

-10
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ markdown_extensions:
8080
- pymdownx.snippets
8181
- pymdownx.superfences
8282
- neoteroi.cards
83-
- termynal:
84-
title: bash
85-
buttons: macos
86-
prompt_literal_start:
87-
- "$"
8883
- footnotes
8984
- attr_list
9085
- md_in_html
@@ -96,11 +91,6 @@ plugins:
9691
- git-revision-date-localized:
9792
type: timeago
9893
fallback_to_build_date: true
99-
- termynal:
100-
title: bash
101-
buttons: macos
102-
prompt_literal_start:
103-
- "$"
10494

10595
extra_css:
10696
- 'assets/css/app.css'

0 commit comments

Comments
 (0)