name: Deploy Landing Page to Storj on: push: branches: [main] workflow_dispatch: jobs: deploy: runs-on: nixos steps: - name: Clone repo run: | rm -rf /tmp/speckl-deploy git clone http://localhost:3000/sscoble/speckl.git /tmp/speckl-deploy cd /tmp/speckl-deploy git checkout ${{ github.sha }} - name: Configure rclone run: | mkdir -p ~/.config/rclone cat > ~/.config/rclone/rclone.conf << 'EOF' [storj] type = s3 provider = Storj access_key_id = ${{ secrets.STORJ_ACCESS_KEY }} secret_access_key = ${{ secrets.STORJ_SECRET_KEY }} endpoint = https://gateway.storjshare.io EOF - name: Deploy to Storj run: | nix run nixpkgs#rclone -- sync /tmp/speckl-deploy/landing/ storj:speckl/ --progress