Skip to content

Commit be24e80

Browse files
committed
fix: ci
1 parent 118b3f5 commit be24e80

2 files changed

Lines changed: 47 additions & 47 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
repository_dispatch:
3+
types: [release]
4+
workflow_dispatch:
5+
inputs:
6+
url:
7+
type: string
8+
description: URL (openapi.json)
9+
push:
10+
branches:
11+
- main
12+
13+
name: Build & release
14+
15+
jobs:
16+
build_and_release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
24+
run_install: false
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
registry-url: 'https://registry.npmjs.org'
30+
cache: 'pnpm'
31+
32+
- run: pnpm install
33+
34+
- if: github.event_name == 'repository_dispatch'
35+
run: echo "SPECIFICATION_URL=${{ github.event.client_payload.artifacts['openapi.json'] }}" >> $GITHUB_ENV
36+
37+
- if: github.event_name == 'workflow_dispatch' && github.event.inputs.url != ''
38+
run: echo "SPECIFICATION_URL=${{ github.event.inputs.url }}" >> $GITHUB_ENV
39+
40+
- if: env.SPECIFICATION_URL == ''
41+
run: echo "SPECIFICATION_URL=https://github.com/vrchatapi/specification/releases/latest/download/openapi.json" >> $GITHUB_ENV
42+
43+
- run: pnpm build
44+
45+
- if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'no_release')
46+
run: wrangler deploy

README.md

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1 @@
1-
# vrchat-community-new3
2-
3-
This is a Next.js application generated with
4-
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
5-
6-
It is a Next.js app with [Static Export](https://nextjs.org/docs/app/guides/static-exports) configured.
7-
8-
Run development server:
9-
10-
```bash
11-
npm run dev
12-
# or
13-
pnpm dev
14-
# or
15-
yarn dev
16-
```
17-
18-
Open http://localhost:3000 with your browser to see the result.
19-
20-
## Explore
21-
22-
In the project, you can see:
23-
24-
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
25-
- `lib/layout.shared.tsx`: Shared options for layouts, optional but preferred to keep.
26-
27-
| Route | Description |
28-
| ------------------------- | ------------------------------------------------------ |
29-
| `app/(home)` | The route group for your landing page and other pages. |
30-
| `app/docs` | The documentation layout and pages. |
31-
| `app/api/search/route.ts` | The Route Handler for search. |
32-
33-
### Fumadocs MDX
34-
35-
A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.
36-
37-
Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.
38-
39-
## Learn More
40-
41-
To learn more about Next.js and Fumadocs, take a look at the following
42-
resources:
43-
44-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
45-
features and API.
46-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
47-
- [Fumadocs](https://fumadocs.dev) - learn about Fumadocs
1+
# VRChat.community

0 commit comments

Comments
 (0)