Skip to content

Commit

Permalink
Updated Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pundah committed Jul 25, 2024
1 parent 35dab7a commit f977b5b
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: mkdocs
on:
push:
branches:
- mkdocs
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
deploy:
runs-on: ubuntu-latest
env:
ENABLE_STRICT: true
ENABLE_MINIFY: true
ENABLE_REMOVE_COMMENTS: true
ENABLE_GIT_AUTHORS: false
ENABLE_GIT_COMMITTERS: false
ENABLE_GIT_REVISION_DATE: false
ENABLE_STRICT_GIT_AUTHORS: false
ENABLE_STRICT_GIT_REVISION_DATE: true
ENABLE_OFFLINE: true
steps:
- uses: actions/checkout@v4
with:
ref: mkdocs
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip --disable-pip-version-check install --no-compile -r requirements.txt --upgrade
- run: mkdocs build
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to Github Pages
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
ENABLE_STRICT: true
ENABLE_MINIFY: true
ENABLE_REMOVE_COMMENTS: true
ENABLE_GIT_AUTHORS: true
ENABLE_GIT_COMMITTERS: true
ENABLE_GIT_REVISION_DATE: true
ENABLE_STRICT_GIT_AUTHORS: true
ENABLE_STRICT_GIT_REVISION_DATE: true
ENABLE_OFFLINE: true
steps:
- uses: actions/checkout@v4
with:
ref: mkdocs
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip --disable-pip-version-check install --no-compile -r requirements.txt --upgrade
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- run: mkdocs gh-deploy

0 comments on commit f977b5b

Please sign in to comment.