Skip to content

feat(plex-guide): add boolean-controlled Wizarr join link #37

feat(plex-guide): add boolean-controlled Wizarr join link

feat(plex-guide): add boolean-controlled Wizarr join link #37

Workflow file for this run

---
name: Build Plex Guide
on:
push:
branches: [main]
paths:
- "plex-guide/**"
pull_request:
branches: [main]
paths:
- "plex-guide/**"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.14.6"
- name: Cache pip packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('plex-guide/requirements.txt') }}
restore-keys: pip-
- name: Install dependencies
run: pip install -r plex-guide/requirements.txt
- name: Build with sample config
working-directory: plex-guide
run: |
cp mkdocs.sample.yml mkdocs.yml
mkdocs build
- name: Prepare Pages structure
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
run: |
mkdir -p _site/plex
cp -r plex-guide/site/* _site/plex/
cat > _site/index.html << 'REDIRECT'
<!DOCTYPE html>
<html>
<head><meta http-equiv="refresh" content="0; url=plex/"></head>
<body><a href="plex/">Plex Guide</a></body>
</html>
REDIRECT
- name: Upload artifact
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: _site
deploy:
name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5