name: Documentation (Nightly) on: schedule: # Run at 4 AM UTC every day - cron: '0 4 * * *' # Allow manual triggers for testing workflow_dispatch: # Allow being called from other workflows workflow_call: concurrency: group: docs-${{ github.ref }} cancel-in-progress: true jobs: generate-docs: name: Generate Project Documentation runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 - name: Prepare documentation directory run: | mkdir -p docs-output cp -r doc/* docs-output/ # Create a simple index.html for the documentation cat > docs-output/index.html <<'EOF' Core Lightning Documentation

Core Lightning Documentation

Welcome to the Core Lightning documentation site.

Available Documentation

This site contains the complete documentation for Core Lightning.

For the full documentation, please visit the doc directory on GitHub.

EOF - name: Upload documentation artifact uses: actions/upload-artifact@v4 with: name: project-docs path: docs-output retention-days: 90 - name: Add summary to job run: | echo "## Project Documentation Generated" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "📖 Documentation files have been collected and prepared." >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "Download the artifact to view the documentation." >> $GITHUB_STEP_SUMMARY