From 6abb385f6c14e97535c72eb0600cd1705e404052 Mon Sep 17 00:00:00 2001 From: Andre Levesque <0sniffs_scaled@icloud.com> Date: Sat, 30 Nov 2024 15:38:21 -0500 Subject: [PATCH] added requirements install --- .github/workflows/deploy.yml | 108 +++++++++++++++++------------------ 1 file changed, 51 insertions(+), 57 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6d0b097e..7babf55e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,57 +1,51 @@ ---- - name: Deploy Documentation - on: - push: - branches: - - main - workflow_dispatch: - - jobs: - deploy: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - # Step 1: Checkout the repository - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # Step 2: Set up Python environment - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" - cache: pip - - # Step 3: Cache MkDocs dependencies for faster builds - - name: Cache MkDocs dependencies - uses: actions/cache@v3 - with: - path: .cache - key: ${{ runner.os }}-mkdocs-v1-${{ hashFiles('mkdocs.yml') }} - restore-keys: | - ${{ runner.os }}-mkdocs-v1- - - # Step 4: Install required Python dependencies - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install \ - mkdocs-material \ - mkdocs-awesome-pages-plugin \ - pymdown-extensions \ - pygments - - # Step 5: Validate MkDocs configuration - - name: Validate MkDocs configuration - run: mkdocs build --config-file mkdocs.yml --strict - - # Step 6: Build and deploy documentation - - name: Build and deploy documentation - run: mkdocs gh-deploy --force - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - \ No newline at end of file +name: Deploy Documentation +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + # Step 1: Checkout the repository + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Step 2: Set up Python environment + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + + # Step 3: Install required Python dependencies from requirements.txt + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + # Step 4: Cache MkDocs dependencies for faster builds + - name: Cache MkDocs dependencies + uses: actions/cache@v3 + with: + path: .cache + key: ${{ runner.os }}-mkdocs-v1-${{ hashFiles('mkdocs.yml') }} + restore-keys: | + ${{ runner.os }}-mkdocs-v1- + + # Step 5: Validate MkDocs configuration + - name: Validate MkDocs configuration + run: mkdocs build --config-file mkdocs.yml --strict + + # Step 6: Build and deploy documentation + - name: Build and deploy documentation + run: mkdocs gh-deploy --force + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file