Skip to content

Commit c4340b1

Browse files
committedSep 1, 2024
feat: v2 setup
1 parent d417eb5 commit c4340b1

Some content is hidden

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

51 files changed

+2531
-261
lines changed
 

‎.gitignore

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
node_modules
2+
3+
dist
4+
dist-ssr
5+
cache
6+
17
.DS_Store
28
.vite-ssg-dist
39
.vite-ssg-temp
410
*.local
5-
dist
6-
dist-ssr
7-
node_modules
11+
812
.idea/
913
.vscode
1014
*.log

‎.gitlab/docs.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,35 @@ stages:
99
- build
1010
- deploy
1111

12-
build_docs:
12+
build:docs:
1313
stage: build
14-
image: node:18-alpine
14+
image: node:20-alpine
1515
before_script:
1616
- corepack enable
1717
- corepack prepare pnpm@latest --activate
1818
- pnpm config set store-dir .pnpm-store
19-
- apk add --no-cache zip
19+
- apk add --no-cache zip git
2020
script:
2121
- cd docs
22-
- pnpm i --reporter=silent
23-
- pnpm run --reporter=silent generate
24-
- cd .output/public
22+
- pnpm i
23+
- pnpm build
24+
- cd .vitepress/dist
2525
- zip -r $ARTIFACT_NAME ./*
2626
- mv $ARTIFACT_NAME ../../../
2727
artifacts:
2828
paths:
2929
- $ARTIFACT_NAME
3030

31-
deploy_docs:
31+
deploy:docs:
3232
stage: deploy
3333
dependencies:
34-
- build_docs
35-
resource_group: deploy_docs
36-
before_script:
37-
- apk add --no-cache aws-cli
34+
- build:docs
35+
resource_group: docs
36+
image:
37+
name: amazon/aws-cli
38+
entrypoint: [""]
39+
variables:
40+
AWS_AMPLIFY_ENV: main
3841
script:
3942
- aws s3 cp $ARTIFACT_NAME s3://${AWS_S3_BUCKET}/${ARTIFACT_NAME}
40-
- aws amplify start-deployment --app-id $AWS_AMPLIFY_ID --branch-name $AWS_AMPLIFY_ENV --source-url s3://${AWS_S3_BUCKET}/${ARTIFACT_NAME}
43+
- aws amplify start-deployment --app-id $AWS_AMPLIFY_ID --branch-name $AWS_AMPLIFY_ENV --source-url s3://${AWS_S3_BUCKET}/${ARTIFACT_NAME}

0 commit comments

Comments
 (0)
Please sign in to comment.