diff --git a/.github/workflows/ci_cd_prod.yml b/.github/workflows/ci_cd_prod.yml index d6a60dd..e5a2664 100644 --- a/.github/workflows/ci_cd_prod.yml +++ b/.github/workflows/ci_cd_prod.yml @@ -1,5 +1,4 @@ -name: ci_cd_prod - +name: 🚀 PROD - Publish TuxTechBlogs via GitHub Actions & Github Pages on: workflow_dispatch: push: @@ -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 \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index 4d47527..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -blogs.tuxtechlab.com \ No newline at end of file diff --git a/TuxTechBlogs/mkdocs.yml b/TuxTechBlogs/mkdocs.yml index 79f56ee..72d2b10 100644 --- a/TuxTechBlogs/mkdocs.yml +++ b/TuxTechBlogs/mkdocs.yml @@ -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} diff --git a/requirements.txt b/requirements.txt index 0e10074..ab69f01 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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