Skip to content

Test prefetching

Test prefetching #378

Workflow file for this run

name: Deploy
concurrency: deploy
on:
push:
branches:
- astro
env:
DISTDIR: ./dist
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: 📦 Install Nix
uses: cachix/install-nix-action@master
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
extra-experimental-features = nix-command flakes pipe-operators
- name: 🛠️ Checkout
uses: actions/checkout@main
- name: 🔨 Build
run: |
out="$(nix build .^out --print-out-paths --no-link --print-build-logs)"
cp -vrL "$out/lib/node_modules/neohome/dist" "${{ env.DISTDIR }}"
- name: 🚀 Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: pages deploy --project-name=neohome --commit-hash "$GITHUB_SHA" "${{ env.DISTDIR }}"