Skip to content

Publish docs nightly #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Documentation

on: [push, pull_request, workflow_dispatch]
on:
schedule:
- cron: '0 0 * * *' # This runs every day at midnight UTC
workflow_dispatch:
push:
pull_request:

jobs:
docs:
name: Build & Publish
runs-on: ubuntu-latest

concurrency:
group: docs-publish
cancel-in-progress: true

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -47,7 +48,7 @@ jobs:
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"

- name: Publish Documentation
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'push'
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'cron'
run: |
set +e
git ls-remote "${{ secrets.DOC_PUSH_URL }}" -q
Expand Down
Loading