Skip to content

Commit 92a116f

Browse files
KianNHthomasgauvin
authored andcommitted
[Docs Site] Sync vendored Markdown files into ZT DevDocs bucket (#23593)
1 parent 081fe20 commit 92a116f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-production.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ jobs:
4040
npx tsx bin/generate-index-md.ts
4141
cd distmd && zip -r markdown.zip .
4242
npx wrangler r2 object put vendored-markdown/markdown.zip --file=markdown.zip --remote
43+
rm markdown.zip
44+
- name: Upload vendored Markdown files to ZT DevDocs bucket
45+
env:
46+
AWS_ACCESS_KEY_ID: ${{ secrets.ZT_DEVDOCS_ACCESS_KEY_ID }}
47+
AWS_SECRET_ACCESS_KEY: ${{ secrets.ZT_DEVDOCS_SECRET_ACCESS_KEY }}
48+
run: |
49+
sudo -v ; curl https://rclone.org/install.sh | sudo bash
50+
rclone sync \
51+
--s3-env-auth \
52+
--s3-provider="Cloudflare" \
53+
--s3-endpoint="https://e76c849bd111ee7d3006b6625713991e.r2.cloudflarestorage.com" \
54+
distmd \
55+
:s3:/zt-dashboard-dev-docs
4356
- uses: actions/cache/save@v4
4457
if: always()
4558
with:

0 commit comments

Comments
 (0)