martin-g commented on code in PR #104:
URL:
https://github.com/apache/arrow-datafusion-python/pull/104#discussion_r1042674883
##########
.github/workflows/docs.yaml:
##########
@@ -0,0 +1,76 @@
+on:
+ push:
+ branches:
+ - docs-workflow
+ tags-ignore:
+ - "**-rc**"
+
+name: Deploy Datafusion Python site
+
+jobs:
+ build-docs:
+ name: Build docs
+ runs-on: ubuntu-latest
+ steps:
+ - name: Set target branch
+ id: target-branch
+ run: |
+ set -x
+ if test '${{ github.ref }}' = 'refs/heads/docs-workflow'; then
+ echo "value=asf-staging" >> $GITHUB_OUTPUT
+ elif test '${{ github.ref_type }}' = 'tag'; then
+ echo "value=asf-site" >> $GITHUB_OUTPUT
+ else
+ echo "Unsupported input: ${{ github.ref }} / ${{ github.ref_type
}}"
+ exit 1
+ fi
+ - name: Checkout docs sources
+ uses: actions/checkout@v3
+ - name: Checkout docs target branch
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ ref: ${{ steps.target-branch.outputs.value }}
+ path: docs-target
Review Comment:
IMO this is more complex/confusing than the current solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]