Skip to content

Commit 4723e7e

Browse files
authored
[Docs Site] Upload vendored Markdown to AutoRAG R2 bucket (#23689)
1 parent 94227ac commit 4723e7e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/publish-production.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,30 @@ jobs:
4747
for file in $(find . -type f); do
4848
npx wrangler r2 object put vendored-markdown/$file --file=$file --remote
4949
done
50+
- name: Install rclone
51+
run: sudo -v ; curl https://rclone.org/install.sh | sudo bash
5052
- name: Upload vendored Markdown files to ZT DevDocs bucket
5153
env:
5254
AWS_ACCESS_KEY_ID: ${{ secrets.ZT_DEVDOCS_ACCESS_KEY_ID }}
5355
AWS_SECRET_ACCESS_KEY: ${{ secrets.ZT_DEVDOCS_SECRET_ACCESS_KEY }}
5456
run: |
55-
sudo -v ; curl https://rclone.org/install.sh | sudo bash
5657
rclone sync \
5758
--s3-env-auth \
5859
--s3-provider="Cloudflare" \
5960
--s3-endpoint="https://e76c849bd111ee7d3006b6625713991e.r2.cloudflarestorage.com" \
6061
distmd \
6162
:s3:/zt-dashboard-dev-docs
63+
- name: Upload vendored Markdown files to AutoRAG DevDocs bucket
64+
env:
65+
AWS_ACCESS_KEY_ID: ${{ secrets.AUTORAG_DEVDOCS_ACCESS_KEY_ID }}
66+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AUTORAG_DEVDOCS_SECRET_ACCESS_KEY }}
67+
run: |
68+
rclone sync \
69+
--s3-env-auth \
70+
--s3-provider="Cloudflare" \
71+
--s3-endpoint="https://cf9267a5bf4f6b3cceca48d554d81679.r2.cloudflarestorage.com" \
72+
distmd \
73+
:s3:/developer-docs-full
6274
- uses: actions/cache/save@v4
6375
if: always()
6476
with:

0 commit comments

Comments
 (0)