Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/cloudflare-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: cloudflare-pages-deploy

on:
schedule:
# Twice daily: 01:00 UTC (09:00 Beijing) and 13:00 UTC (21:00 Beijing)
- cron: '0 1,13 * * *'
workflow_dispatch:

concurrency:
group: cloudflare-pages-deploy
cancel-in-progress: true

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Cloudflare Pages Deploy Hook
env:
CLOUDFLARE_PAGES_DEPLOY_HOOK_URL: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK_URL }}
run: |
if [ -z "$CLOUDFLARE_PAGES_DEPLOY_HOOK_URL" ]; then
echo "Missing secret CLOUDFLARE_PAGES_DEPLOY_HOOK_URL" >&2
exit 1
fi

curl -sS -X POST "$CLOUDFLARE_PAGES_DEPLOY_HOOK_URL" -o /dev/null -w "HTTP %{http_code}\n"
10 changes: 0 additions & 10 deletions .github/workflows/rspress-ecosystem-ci-from-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ jobs:
env:
ECOSYSTEM_CI_REF: ${{ inputs.commitSHA }}
ECOSYSTEM_CI_TYPE: 'commit'
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-rspress
Expand Down Expand Up @@ -96,11 +91,6 @@ jobs:
env:
ECOSYSTEM_CI_REF: ${{ inputs.commitSHA }}
ECOSYSTEM_CI_TYPE: 'commit'
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v5
- uses: moonrepo/setup-rust@v1
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/rspress-ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ jobs:
execute-selected-suite:
runs-on: ubuntu-latest
if: "inputs.suite != '-'"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-rspress
Expand Down Expand Up @@ -91,12 +85,6 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
name: execute-all (${{ matrix.suite }})
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-rspress
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/rspress-ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ jobs:
execute-selected-suite:
runs-on: ubuntu-latest
if: "inputs.suite != '-'"
env:
ECOSYSTEM_CI_REF: ${{ inputs.ref }}
ECOSYSTEM_CI_TYPE: 'branch'
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-rspress
Expand All @@ -85,14 +77,6 @@ jobs:

execute-all:
if: "inputs.suite == '-'"
env:
ECOSYSTEM_CI_REF: ${{ inputs.ref }}
ECOSYSTEM_CI_TYPE: 'branch'
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
RSBUILD_NETLIFY_SITE_ID: ${{ secrets.RSBUILD_NETLIFY_SITE_ID }}
RSLIB_NETLIFY_SITE_ID: ${{ secrets.RSLIB_NETLIFY_SITE_ID }}
RSPACK_NETLIFY_SITE_ID: ${{ secrets.RSPACK_NETLIFY_SITE_ID }}
RSTEST_NETLIFY_SITE_ID: ${{ secrets.RSTEST_NETLIFY_SITE_ID }}
strategy:
matrix:
include:
Expand Down
13 changes: 0 additions & 13 deletions netlify.toml

This file was deleted.

27 changes: 0 additions & 27 deletions netlify/functions/trigger-deploy.ts

This file was deleted.

13 changes: 1 addition & 12 deletions tests/rspress/rsbuild.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { RunOptions } from '../../types';
import { cd, runInRepo } from '../../utils';
import { MESSAGE, deployPreviewToNetlify } from './utils/_netlify';

const SITE_ID_ENV = 'RSBUILD_NETLIFY_SITE_ID';

export async function test(options: RunOptions) {
await runInRepo({
Expand All @@ -12,14 +9,6 @@ export async function test(options: RunOptions) {
beforeTest: async () => {
cd('./website');
},
test: [
'build',
async () => {
await deployPreviewToNetlify({
message: MESSAGE,
siteIdEnvVar: SITE_ID_ENV,
});
},
],
test: ['build'],
});
}
13 changes: 1 addition & 12 deletions tests/rspress/rslib.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { RunOptions } from '../../types';
import { cd, runInRepo } from '../../utils';
import { MESSAGE, deployPreviewToNetlify } from './utils/_netlify';

const SITE_ID_ENV = 'RSLIB_NETLIFY_SITE_ID';

export async function test(options: RunOptions) {
await runInRepo({
Expand All @@ -12,14 +9,6 @@ export async function test(options: RunOptions) {
beforeTest: async () => {
cd('./website');
},
test: [
'build',
async () => {
await deployPreviewToNetlify({
message: MESSAGE,
siteIdEnvVar: SITE_ID_ENV,
});
},
],
test: ['build'],
});
}
13 changes: 1 addition & 12 deletions tests/rspress/rspack.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { RunOptions } from '../../types';
import { cd, runInRepo } from '../../utils';
import { MESSAGE, deployPreviewToNetlify } from './utils/_netlify';

const SITE_ID_ENV = 'RSPACK_NETLIFY_SITE_ID';

export async function test(options: RunOptions) {
await runInRepo({
Expand All @@ -12,14 +9,6 @@ export async function test(options: RunOptions) {
beforeTest: async () => {
cd('./website');
},
test: [
'pnpm run build',
async () => {
await deployPreviewToNetlify({
message: MESSAGE,
siteIdEnvVar: SITE_ID_ENV,
});
},
],
test: ['pnpm run build'],
});
}
13 changes: 1 addition & 12 deletions tests/rspress/rstest.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { RunOptions } from '../../types';
import { cd, runInRepo } from '../../utils';
import { MESSAGE, deployPreviewToNetlify } from './utils/_netlify';

const SITE_ID_ENV = 'RSTEST_NETLIFY_SITE_ID';

export async function test(options: RunOptions) {
await runInRepo({
Expand All @@ -12,14 +9,6 @@ export async function test(options: RunOptions) {
beforeTest: async () => {
cd('./website');
},
test: [
'build',
async () => {
await deployPreviewToNetlify({
message: MESSAGE,
siteIdEnvVar: SITE_ID_ENV,
});
},
],
test: ['build'],
});
}
59 changes: 0 additions & 59 deletions tests/rspress/utils/_netlify.ts

This file was deleted.

Loading
Loading