speckl/.forgejo/workflows/deploy-landing.yml
Scott Scoble a7399e17d7
Some checks failed
Deploy Landing Page to Storj / deploy (push) Failing after 0s
Simplify deploy workflow: direct git clone instead of actions/checkout
2026-04-29 17:16:41 -07:00

33 lines
No EOL
892 B
YAML

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