]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
docs: simplify cloudflare docs deploy (#3022)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Thu, 18 Sep 2025 20:59:21 +0000 (22:59 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 20:59:21 +0000 (20:59 +0000)
.github/workflows/publish.yml

index db2b98490541b31d36be9389cf938a4bc3f61ed1..88addac02a986fc97f3b36bb76b79ea3a4ba4a0f 100644 (file)
@@ -101,11 +101,6 @@ jobs:
 
     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:
@@ -115,8 +110,8 @@ jobs:
       - 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
+            pages deploy ./site
+            --project-name starlette
+            --commit-hash ${{ github.sha }}
+            --branch main