Skip to content

Auto Deploy

Auto Deploy #794

Workflow file for this run

name: Auto Deploy
on:
schedule:
- cron: "0 0 * * *"
jobs:
check:
runs-on: ubuntu-latest
outputs:
deploy: ${{ steps.set-output.outputs.deploy }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check if deployment is needed
id: set-output
shell: bash
run: ./scripts/check-deploy.sh
deploy:
needs: check
if: needs.check.outputs.deploy == 'true'
name: Publish to the `gh-pages` branch
permissions:
contents: write
uses: ./.github/workflows/publish.yml
with:
destination_dir: ./