Skip to content

Merge pull request #26 from danibcorr/dependabot/uv/mkdocs-awesome-na… #48

Merge pull request #26 from danibcorr/dependabot/uv/mkdocs-awesome-na…

Merge pull request #26 from danibcorr/dependabot/uv/mkdocs-awesome-na… #48

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: ["*"]
pull_request:
branches: [main, dev]
env:
SRC_PYTHON_VERSION: "3.11"
jobs:
setup:
name: Setup Code
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Setup Python & Install Dependencies
uses: ./.github/actions/setup-python-env
with:
src-python-version: ${{ env.SRC_PYTHON_VERSION }}
uv-group: "pipeline"
uv-extra: "--all-extras"
build-deploy-mkdocs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Build MkDocs Documentation
runs-on: ubuntu-latest
needs: setup
permissions:
contents: write
pages: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Python & Install Dependencies
uses: ./.github/actions/setup-python-env
with:
src-python-version: ${{ env.SRC_PYTHON_VERSION }}
uv-group: "documentation"
- name: Get Version
id: version
uses: ./.github/actions/obtain-version
- name: Build MkDocs Site with Mike
uses: ./.github/actions/build-mkdocs
with:
docs-version: ${{ steps.version.outputs.version }}
create-release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Create Release
runs-on: ubuntu-latest
needs: build-deploy-mkdocs
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Python & Install Dependencies
uses: ./.github/actions/setup-python-env
with:
src-python-version: ${{ env.SRC_PYTHON_VERSION }}
uv-group: "pipeline"
- name: Get Version
id: version
uses: ./.github/actions/obtain-version
- name: Create Release
id: release
uses: ./.github/actions/create-release
with:
version: ${{ steps.version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release Summary
run: |
echo "# Release Summary" >> $GITHUB_STEP_SUMMARY
echo "- **Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "- **Created:** ${{ steps.release.outputs.created }}" >> $GITHUB_STEP_SUMMARY