Auto Deploy #759
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ./ |