brand-site/.forgejo/workflows/deploy.yml
Scott Scoble c7a466de3d
Some checks failed
Build and Deploy to Storj / build-and-deploy (push) Failing after 1s
Use nixos runner label
2026-04-28 22:47:43 -07:00

35 lines
885 B
YAML

name: Build and Deploy to Storj
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: nixos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
npm ci
npm run build
- 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: |
rclone sync ./dist/ storj:${{ secrets.STORJ_BUCKET }}/ --progress
rclone sync ./public/downloads/ storj:${{ secrets.STORJ_BUCKET }}/downloads/ --progress