Skip to content

.github/workflows/mkdocs.yaml #13

.github/workflows/mkdocs.yaml

.github/workflows/mkdocs.yaml #13

Workflow file for this run

name: Build site nightly
on:
schedule:
- cron: "0 0 * * *"
jobs:
dot-release:
name: dot-release
runs-on: ubuntu-latest
steps:
- name: curl
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
uses: wei/curl@v1
with:
args: -X POST -d '{}' "$NETLIFY_BUILD_HOOK"
- name: Check response status
run: |
response=$(curl -s -o response.txt -w "%{http_code}" -X POST -d '{}' "$NETLIFY_BUILD_HOOK")
if [ "$response" -ne 200 ]; then
echo "Build trigger failed with status: $response"
cat response.txt
exit 1
fi