Skip to content

Merge pull request #40 from geotribu/dependabot/github_actions/action… #5

Merge pull request #40 from geotribu/dependabot/github_actions/action…

Merge pull request #40 from geotribu/dependabot/github_actions/action… #5

Workflow file for this run

name: "🚀 Déploiement (fake)"
on:
push:
branches: [main]
paths:
- ".github/workflows/deploy.yml"
- "content/**"
- "mkdocs.yml"
- "requirements.txt"
jobs:
deploy:
name: "📤 Artifact"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'geotribu' }}
steps:
- name: Get source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: "pip"
- name: Install dependencies
env:
GH_TOKEN_MATERIAL_INSIDERS: ${{ secrets.GH_TOKEN_MATERIAL_INSIDERS }}
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -r requirements-insiders.txt
- name: Build static website
run: |
mkdocs build --clean --config-file mkdocs.yml --verbose --strict
env:
MKDOCS_ENABLE_PLUGIN_GIT_AUTHORS: true
MKDOCS_ENABLE_PLUGIN_GIT_DATES: true
MKDOCS_ENABLE_PLUGIN_PRIVACY: true
MKDOCS_ENABLE_PLUGIN_RSS: true
MKDOCS_GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
- name: Save build website as artifact
uses: actions/upload-artifact@v4
with:
name: main-build-website
path: build/mkdocs/site
retention-days: 15