diff --git a/.github/workflows/publish-production.yml b/.github/workflows/publish-production.yml index 199144a384972e6..1ab4240be234953 100644 --- a/.github/workflows/publish-production.yml +++ b/.github/workflows/publish-production.yml @@ -40,6 +40,19 @@ jobs: npx tsx bin/generate-index-md.ts cd distmd && zip -r markdown.zip . npx wrangler r2 object put vendored-markdown/markdown.zip --file=markdown.zip --remote + rm markdown.zip + - name: Upload vendored Markdown files to ZT DevDocs bucket + env: + AWS_ACCESS_KEY_ID: ${{ secrets.ZT_DEVDOCS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.ZT_DEVDOCS_SECRET_ACCESS_KEY }} + run: | + sudo -v ; curl https://rclone.org/install.sh | sudo bash + rclone sync \ + --s3-env-auth \ + --s3-provider="Cloudflare" \ + --s3-endpoint="https://e76c849bd111ee7d3006b6625713991e.r2.cloudflarestorage.com" \ + distmd \ + :s3:/zt-dashboard-dev-docs - uses: actions/cache/save@v4 if: always() with: