Skip to content

Commit b959e54

Browse files
committed
test: github actions
1 parent 42373bb commit b959e54

File tree

1,106 files changed

+1210
-162996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,106 files changed

+1210
-162996
lines changed

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy Rspress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27+
- name: Setup Bun
28+
uses: oven-sh/setup-bun@v1
29+
- name: Install dependencies
30+
run: bun install
31+
- name: Build with Rspress
32+
run: |
33+
bun run deploy
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: doc_build
38+
39+
# Deployment job
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
needs: build
45+
runs-on: ubuntu-latest
46+
name: Deploy
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ Scripting Documentation.zip
1919

2020
doc_build.zip
2121
doc_build_fun/
22-
doc_build_fun.zip
22+
doc_build_fun.zip
23+
24+
__MACOSX/
25+
26+
docs/App Store/*/guide/
27+
docs/TestFlight/*/guide/

bun.lock

Lines changed: 120 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)