Skip to content

Commit

Permalink
ci: Migrate docs upload to Google cloud (#766)
Browse files Browse the repository at this point in the history
Fixes #742 

I've tested on my own fork
  • Loading branch information
jnumainville authored Aug 28, 2024
1 parent e445745 commit bf38c07
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/make-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ jobs:
cat << EOF > $HOME/.config/rclone/rclone.conf
[plugindocs]
type = s3
provider = Cloudflare
access_key_id = ${{ secrets.DOCS_CLOUDFLARE_ACCESS_KEY_ID }}
secret_access_key = ${{ secrets.DOCS_CLOUDFLARE_SECRET_ACCESS_KEY }}
endpoint = ${{ secrets.DOCS_CLOUDFLARE_ENDPOINT }}
no_check_bucket = true
acl = private
type = google cloud storage
service_account_file = $HOME/credentials.json
project_number = ${{ secrets.DOCS_GOOGLE_CLOUD_PROJECT_NUMBER }}
bucket_policy_only = true
EOF
echo ${{ secrets.DOCS_GOOGLE_CLOUD_CREDENTIALS }} | base64 -d > $HOME/credentials.json
- name: Sync docs
if: inputs.event_name == 'push'
run: rclone sync plugins/${{ inputs.package }}/docs/build/markdown/ plugindocs:website/deephaven/deephaven-plugins/${{ inputs.package }}/${{ inputs.version }}/
run: rclone sync plugins/${{ inputs.package }}/docs/build/markdown/ plugindocs:${{ secrets.DOCS_GOOGLE_CLOUD_BUCKET }}/deephaven/deephaven-plugins/${{ inputs.package }}/${{ inputs.version }}/

0 comments on commit bf38c07

Please sign in to comment.