File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,19 +27,24 @@ jobs:
2727 steps :
2828 - name : Checkout
2929 uses : actions/checkout@v4
30- - uses : dtolnay/rust-toolchain@stable
31- - uses : Swatinem/rust-cache@v2
32- - name : Install worker-build
33- run : |
34- cargo install worker-build
30+ - name : Install nix
31+ uses : cachix/install-nix-action@v31
32+ - name : Build nix
33+ run : nix build
34+ - name : Fix up wrangler toml
35+ run :
36+ cat wrangler.toml | sed 's/main = "build/main = "result/' > wrangler.toml
37+ cat wrangler.toml | sed 's/command = "worker-build --release"/command = "echo dummy build"' > wrangler.toml
3538 - name : Deploy
3639 uses : cloudflare/wrangler-action@v3
3740 # env:
3841 # YOUR_SECRET: ${{ secrets.YOUR_SECRET }}
3942 # YOUR_OTHER_SECRET: ${{ secrets.YOUR_OTHER_SECRET }}
4043 with :
44+ wranglerVersion : " 4.19.1"
4145 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
4246 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
47+ command : wrangler deploy
4348 # secrets: |
4449 # YOUR_SECRET
4550 # YOUR_OTHER_SECRET
You can’t perform that action at this time.
0 commit comments