-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm run docs:build
- name: Zip
run: pnpm run docs:zip
- name: Deploy
run: |
curl --location 'https://gateway.zeabur.com/projects/66d7177c6552069ec1cfa5e7/services/670614505aa99002bd6de73a/deploy' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer ${{secrets.ZEABUR_TOKEN}}' \
--form 'code=@"/home/runner/work/vitepress-theme/vitepress-theme/docs/.vitepress/zip/dist.zip"' \
--form 'environment="${{secrets.ENVIRONMENT}}"'