Initial commit: Astro speaker site with Forgejo Actions CI/CD
Some checks are pending
Build and Deploy to Storj / build-and-deploy (push) Waiting to run

This commit is contained in:
Scott Scoble 2026-04-28 20:52:10 -07:00
commit 3705631510
41 changed files with 9096 additions and 0 deletions

View file

@ -0,0 +1,46 @@
name: Build and Deploy to Storj
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install rclone
run: |
curl https://rclone.org/install.sh | bash
- 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