Skip to content

Commit

Permalink
ci: Update ci.yml to install necessary packages with pip 🤞
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Rummler <[email protected]>
  • Loading branch information
jaredrummler committed Mar 25, 2024
1 parent 8471415 commit 0f2215e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
name: ci
name: Build and Deploy MkDocs Site

on:
push:
branches:
- main
permissions:
contents: write

jobs:
deploy:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
python-version: '3.x'

- name: Install dependencies
run: |
pip install mkdocs
pip install mkdocs-material
pip install pymdown-extensions
pip install mkdocs-minify-plugin
pip install neoteroi-mkdocs
pip install mkdocs-git-revision-date-localized-plugin
- name: Build MkDocs site
run: mkdocs build

- name: Deploy GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
BRANCH: gh-pages
FOLDER: site
SINGLE_COMMIT: true
10 changes: 0 additions & 10 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ markdown_extensions:
- pymdownx.snippets
- pymdownx.superfences
- neoteroi.cards
- termynal:
title: bash
buttons: macos
prompt_literal_start:
- "$"
- footnotes
- attr_list
- md_in_html
Expand All @@ -96,11 +91,6 @@ plugins:
- git-revision-date-localized:
type: timeago
fallback_to_build_date: true
- termynal:
title: bash
buttons: macos
prompt_literal_start:
- "$"

extra_css:
- 'assets/css/app.css'
Expand Down

0 comments on commit 0f2215e

Please sign in to comment.