mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
Update 'github-pages.yaml' Workflow - Fix several warnings & enable Caching pip packages (#2539)
* Update 'github-pages.yaml' Workflow - Fix several warnings & enable Caching pip packages * Fix 'github-pages.yaml' Syntax Error * Make Install Dependencies step actually use the 'requirements.txt' File in 'github-pages.yaml' Workflow * Update 'actions/setup-python' from v4 to v5 - Remove the Ignore Rule for Dependabot in '.github/dependabot.yml' File
This commit is contained in:
30
.github/workflows/github-pages.yaml
vendored
30
.github/workflows/github-pages.yaml
vendored
@ -1,25 +1,31 @@
|
||||
name: GitHub Pages Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published, prereleased]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- uses: actions/cache@v4
|
||||
fetch-depth: '0' # Fetch all commit history for all branches as well as tags.
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
key: ${{ github.ref }}
|
||||
path: .cache
|
||||
- run: pip install mkdocs-material
|
||||
- run: pip install pillow cairosvg
|
||||
- run: pip install mkdocs-awesome-pages-plugin
|
||||
- run: pip install mkdocs-git-revision-date-localized-plugin
|
||||
- run: pip install mkdocs-minify-plugin
|
||||
- run: mkdocs gh-deploy --force
|
||||
python-version: 3.x # Install latest Stable release of Python 3
|
||||
cache: 'pip' # caching pip dependencies
|
||||
|
||||
- name: Install Necessary Dependencies using 'pip install -r requirements.txt'
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: Build & Deploy using 'mkdocs'
|
||||
run: mkdocs gh-deploy --force
|
||||
|
Reference in New Issue
Block a user