]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
docs: add docs to starlette.dev (#3021)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Thu, 18 Sep 2025 20:44:57 +0000 (22:44 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 20:44:57 +0000 (20:44 +0000)
.github/workflows/publish.yml

index c41fb46f85dfd47cb8ba669f260d7a1cd4d04c72..db2b98490541b31d36be9389cf938a4bc3f61ed1 100644 (file)
@@ -90,3 +90,33 @@ jobs:
 
       - name: Publish documentation ðŸ“š to GitHub Pages
         run: uv run mkdocs gh-deploy --force
+
+  docs-cloudflare:
+    runs-on: ubuntu-latest
+    needs: build
+
+    environment:
+      name: cloudflare
+      url: https://starlette.dev
+
+    steps:
+      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+
+      - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
+      - run: npm install
+        working-directory: docs-site
+
+      - name: Download artifacts
+        uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
+        with:
+          name: documentation
+          path: site/
+
+      - uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
+        with:
+          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+          workingDirectory: docs-site
+          command: >
+            deploy
+            --var GIT_COMMIT_SHA:${{ github.sha }}
+            --var GIT_BRANCH:main