Skip to content

Commit

Permalink
Revert "ci: add changed-files for mkdocs"
Browse files Browse the repository at this point in the history
This reverts commit 5f97f3f.
  • Loading branch information
psychedelicious committed Mar 2, 2024
1 parent 5f97f3f commit e756bd5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/mkdocs-material.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:

jobs:
deploy:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
REPO_URL: '${{ github.server_url }}/${{ github.repository }}'
Expand All @@ -23,29 +24,17 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: check for changed docs
if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' }}
id: changed-files
uses: tj-actions/changed-files@v42
with:
files_yaml: |
docs:
- 'docs/**'
- name: setup python
if: ${{ steps.changed-files.outputs.docs_any_changed == 'true' }}
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
cache-dependency-path: pyproject.toml

- name: set cache id
if: ${{ steps.changed-files.outputs.docs_any_changed == 'true' }}
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- name: use cache
if: ${{ steps.changed-files.outputs.docs_any_changed == 'true' }}
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
Expand All @@ -54,9 +43,7 @@ jobs:
mkdocs-material-
- name: install dependencies
if: ${{ steps.changed-files.outputs.docs_any_changed == 'true' }}
run: python -m pip install ".[docs]"

- name: build & deploy
if: ${{ steps.changed-files.outputs.docs_any_changed == 'true' }}
run: mkdocs gh-deploy --force

0 comments on commit e756bd5

Please sign in to comment.