@@ -56,12 +56,14 @@ jobs:
5656 with :
5757 ref : ${{ inputs.branch }}
5858
59- # - name: Install Nix
60- # uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # ratchet:DeterminateSystems/nix-installer-action@v16
61- - name : Install Nix
62- uses : nixbuild/nix-quick-install-action@v33
59+ - name : Install nix
60+ uses : DeterminateSystems/nix-installer-action@786fff0690178f1234e4e1fe9b536e94f5433196 # ratchet:DeterminateSystems/nix-installer-action@v20
6361 with :
64- nix_conf : " system-features = nixos-test benchmark big-parallel kvm"
62+ extra-conf : " system-features = nixos-test benchmark big-parallel kvm"
63+ # - name: Install Nix
64+ # uses: nixbuild/nix-quick-install-action@v33
65+ # with:
66+ # nix_conf: "system-features = nixos-test benchmark big-parallel kvm"
6567 - name : Setup remote cache
6668 # TODO: disable continue-on-error https://www.github.com/cachix/cachix-action/issues/200
6769 uses : cachix/cachix-action@41f25c0d23388f1a854cc67abb62029877468386 # ratchet:cachix/cachix-action@master
@@ -97,28 +99,32 @@ jobs:
9799 runs-on : ubuntu-latest
98100 steps :
99101 - name : Download docs
100- uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # ratchet:actions/download-artifact@v4
102+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # ratchet:actions/download-artifact@v4
101103 with :
102104 name : docs-site
103105
104- - name : Show file tree
106+ - name : Site artifact tree
105107 run : |
106- tree --du -alh
108+ if command -v tree &> /dev/null; then
109+ tree --du -alh
110+ else
111+ echo "tree command not found, skipping file tree display"
112+ fi
107113
108- - name : Deploy to Cloudflare
114+ - name : Deploy preview
109115 id : deployment
110116 uses : cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # ratchet:cloudflare/wrangler-action@v3
111117 with :
112- wranglerVersion : " 4.37.0 "
118+ wranglerVersion : " 4.37.1 "
113119 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
114120 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
115121 command : versions upload --preview-alias b-${{ inputs.branch }}
116122 gitHubToken : ${{ secrets.GITHUB_TOKEN }}
117123
118- - name : Wrangler output
124+ - name : Preview rollout command
119125 env :
120126 WRANGLER_OUTPUT : ${{ steps.deployment.outputs.command-output }}
121127 run : |
122- echo $WRANGLER_OUTPUT
123- VERSION_ID=$( echo "$WRANGLER_OUTPUT" | grep -oP 'Version ID: \K[a-f0-9]+')
124- echo "version_id=$VERSION_ID "
128+ WRANGLER_VERSION_ID=$( echo " $WRANGLER_OUTPUT" | grep -oP 'Version ID: \K[a-f0-9-]+')
129+ echo "WRANGLER_VERSION_ID=$WRANGLER_VERSION_ID"
130+ echo "pnpm --package=wrangler -c dlx wrangler versions deploy ${WRANGLER_VERSION_ID}@100 --yes --dry-run "
0 commit comments