Replace actions/checkout with local git clone
Some checks failed
Build and Deploy to Storj / build-and-deploy (push) Failing after 0s

This commit is contained in:
Scott Scoble 2026-04-28 23:08:31 -07:00
parent 53d3b4a1ea
commit c8ce62cac9

View file

@ -9,21 +9,26 @@ jobs:
build-and-deploy:
runs-on: nixos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clone repo
run: |
git clone http://localhost:3000/sscoble/brand-site.git /tmp/brand-site
cd /tmp/brand-site
git checkout ${{ github.sha }}
- name: Build website with Nix
working-directory: /tmp/brand-site
run: nix build .#website --no-write-lock-file
- name: Build speaker profile PDF
working-directory: /tmp/brand-site
run: nix build .#speaker-profile --no-write-lock-file
- name: Copy build artifacts
run: |
mkdir -p ./dist
cp -r result/* ./dist/
cp -r /tmp/brand-site/result/* ./dist/
mkdir -p ./public/downloads
cp result-2/* ./public/downloads/ 2>/dev/null || true
cp /tmp/brand-site/result-2/* ./public/downloads/ 2>/dev/null || true
- name: Configure rclone
run: |