Files
dbt-project-evaluator/.github/workflows/mkdocs_main.yml
Daniel Dyssegaard Kallick 9f9aed6d0c Pin GitHub Actions to specific SHAs (6 actions in 3 files)
Updated action references from tags/branches to specific commit SHAs for improved security and reproducibility.
2025-10-31 16:54:01 -04:00

34 lines
917 B
YAML

name: Publish MkDocs on Main Branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
mike deploy --push --message "Deployed by GitHub Actions" main