add main less #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
concurrency: deploy | |
on: | |
push: | |
branches: | |
- astro | |
env: | |
DISTDIR: ./dist | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Install Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Build | |
run: | | |
out="$(nix build .^out --print-out-paths --no-link)" | |
cp -vrL "$out/lib/node_modules/neohome/dist" "${{ env.DISTDIR }}" | |
- name: Publish | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
command: pages deploy --project-name=neohome --branch preview "${{ env.DISTDIR }}" |