Skip to content

Commit

Permalink
Temporary change to force deploy, please ignore!
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Feb 5, 2024
1 parent 17cc311 commit e5951d1
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/mkdocs-build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,35 @@ name: MkDocs build and deploy
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- "mkdocs.yml"
- "docs/**"
branches: [ main, mkdocs ]
pull_request:
branches: [ main ]
paths:
- "mkdocs.yml"
- "docs/**"

jobs:
build-and-deploy:
permissions:
contents: read
pages: write
id-token: write
uses: Nexus-Mods/NexusMods.App.Meta/.github/workflows/mkdocs-build-and-deploy.yaml@main
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"

- uses: actions/setup-python@v5
with:
python-version: 3.x

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material # Installs latest from pip
- run: mkdocs build

- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path: "./site"

0 comments on commit e5951d1

Please sign in to comment.