Skip to content

Replace docker-compose commands with shell scripts #23

Replace docker-compose commands with shell scripts

Replace docker-compose commands with shell scripts #23

Workflow file for this run

name: PR Preview Deploy
on:
pull_request_target:
types: [opened, synchronize, reopened, closed]
concurrency:
group: preview-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout PR head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocs-video mkdocs-redirects
- name: Build MkDocs site
if: github.event.action != 'closed'
run: mkdocs build
- name: Deploy PR Preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./site/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
token: ${{ secrets.GITHUB_TOKEN }}