Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions .github/workflows/ci_cd_prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: ci_cd_prod

name: 🚀 PROD - Publish TuxTechBlogs via GitHub Actions & Github Pages
on:
workflow_dispatch:
push:
Expand All @@ -9,25 +8,31 @@ permissions:
contents: write

jobs:
deploy_on_build:
build:
name: Deploy Mkdocs Website
runs-on: ubuntu-latest
steps:
- name: Checkout Github Repository
uses: actions/checkout@v3 # Use version 3 of the action

- name: Install Python
uses: actions/setup-python@v4 # Use version 4 of the action
with:
python-version: '3.x'

- name: Install Python Dependencies
run: |
echo "Installing The Python Dependencies"
pip install mkdocs mkdocs-material mkdocs-swagger-ui
echo "Completed Installing Python Dependencies"
- name: Checkout master Branch of Blogs
uses: actions/checkout@v2

- name: Deploy mkdocs Website
run: |
cd TuxTechBlogs
mkdocs gh-deploy -b prod-pages --clean --force
echo "Completed Deploying The Website"
- name: Deploy Blogs on Custom Domain
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: blogs.tuxtechlab.com
CONFIG_FILE: TuxTechBlogs/mkdocs.yml
EXTRA_PACKAGES: >
jinja2~=3.0
markdown~=3.2
mkdocs~=1.6
mkdocs-material-extensions~=1.3
pygments~=2.16
pymdown-extensions~=10.2
babel~=2.10
colorama~=0.4
paginate~=0.5
regex>=2022.4
requests~=2.26
# GITHUB_DOMAIN: github.myenterprise.com
REQUIREMENTS: requirements.txt
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

2 changes: 1 addition & 1 deletion TuxTechBlogs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ copyright: >

# Site Configurations
use_directory_urls: true
strict: no
strict: false
# Enable dev_addr when working in development environment.
#dev_addr: 0.0.0.0:{BLOGS_CTR_INTERNAL_PORT}

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# IN THE SOFTWARE.

# Requirements for core
jinja2~=3.0
jinja2~=3.1
markdown~=3.2
mkdocs~=1.6
mkdocs-material-extensions~=1.3
Expand Down