Skip to content

Commit c5c9b76

Browse files
authored
chore: remove OSS deployment steps (#90)
1 parent 784a20c commit c5c9b76

2 files changed

Lines changed: 11 additions & 51 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,33 +49,6 @@ jobs:
4949
- name: Generate sitemap
5050
run: node scripts/generate-sitemap.js
5151

52-
- name: Install Aliyun OSS CLI
53-
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
54-
shell: bash
55-
run: |
56-
echo "Installing ossutil2"
57-
curl -o ossutil.zip https://gosspublic.alicdn.com/ossutil/v2/2.1.1/ossutil-2.1.1-linux-amd64.zip
58-
unzip -o ossutil.zip
59-
chmod 755 ossutil-2.1.1-linux-amd64/ossutil
60-
sudo mv ossutil-2.1.1-linux-amd64/ossutil /usr/local/bin/
61-
rm -rf ossutil.zip ossutil-2.1.1-linux-amd64
62-
63-
echo "ossutil2 installation completed"
64-
65-
- name: Upload to Aliyun OSS
66-
# if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
67-
shell: bash
68-
env:
69-
OSS_ACCESS_KEY_ID: ${{ secrets.ALICLOUDOSS_KEY_ID }}
70-
OSS_ACCESS_KEY_SECRET: ${{ secrets.ALICLOUDOSS_KEY_SECRET }}
71-
OSS_REGION: cn-beijing
72-
OSS_ENDPOINT: https://oss-cn-beijing.aliyuncs.com
73-
run: |
74-
echo "Uploading to OSS"
75-
# ossutil rm -r oss://rustfs/ --force
76-
ossutil cp -r ./out/ oss://rustfs/ --force
77-
echo "Successfully uploaded to OSS"
78-
7952
- name: Push to IndexNow
8053
env:
8154
INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY }}
@@ -92,8 +65,3 @@ jobs:
9265
-H "Content-Type: application/json" \
9366
-d "$JSON" \
9467
-w "\nIndexNow HTTP %{http_code}\n"
95-
96-
- name: Show OSS error log if exists
97-
if: failure()
98-
run: |
99-
cat /home/runner/work/rustfs.com/rustfs.com/ossutil_output/*.report || true

‎AGENTS.md‎

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ This document provides development guidelines and rules for AI Agents to ensure
44

55
## 📋 Project Overview
66

7-
- **Project Name**: RustFS.com - Official Website
7+
- **Project Name**: RustFS.com - Primary English Website
88
- **Framework**: Next.js 16.2.11 (App Router, Static Export)
99
- **Language**: TypeScript (ES2025+, Strict Mode)
1010
- **Package Manager**: pnpm
1111
- **Styling**: Tailwind CSS 4 + shadcn/ui
12-
- **CI/CD**: GitHub Actions → Aliyun OSS
12+
- **CI/CD**: Cloudflare + GitHub Actions
13+
14+
### Website Relationship
15+
16+
- `rustfs.com` is the primary English website and the source of truth for site implementation.
17+
- Localized websites, including `rustfs.com.cn`, should follow the English website except for documented localization requirements.
1318

1419
## 🚨 Core Rules
1520

@@ -52,24 +57,11 @@ This document provides development guidelines and rules for AI Agents to ensure
5257

5358
## 🔄 CI/CD Pipeline Overview
5459

55-
### GitHub Actions Workflow Steps
56-
57-
According to `.github/workflows/deploy.yml`, the CI process includes:
58-
59-
1. **Checkout**: Check out code
60-
61-
2. **Install pnpm**:
62-
63-
3. **Use Node.js**:
64-
65-
4. **Install dependencies and build**:
66-
67-
```bash
68-
pnpm install --no-frozen-lockfile
69-
pnpm run build
70-
```
60+
### Deployment
7161

72-
5. **Deploy**: Deploy to Aliyun OSS
62+
- Production website deployment is managed by Cloudflare.
63+
- `.github/workflows/deploy.yml` builds the website, generates the sitemap, and notifies IndexNow; it must not deploy to Aliyun OSS.
64+
- `.github/workflows/deploy-homepage-metrics.yml` remains responsible for the separate homepage metrics Worker.
7365

7466
### Local CI Simulation
7567

0 commit comments

Comments
 (0)