Skip to content
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
15 changes: 12 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ on:
name: Deploy DataFusion Python site

jobs:
debug-github-context:
name: Print github context
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
build-docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Set target branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
id: target-branch
run: |
set -x
Expand All @@ -31,7 +40,7 @@ jobs:
- name: Checkout docs sources
uses: actions/checkout@v3
- name: Checkout docs target branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -69,7 +78,7 @@ jobs:
make html

- name: Copy & push the generated HTML
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
run: |
set -x
cd docs-target
Expand Down