-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 814 Bytes
/
Copy pathmain.yml
File metadata and controls
33 lines (28 loc) · 814 Bytes
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
name: Build
on:
push:
branches:
- v2
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 10.6.0
- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'pnpm'
- run: pnpm i
- name: Build
run: pnpm build
# - name: Deploy Github Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.TOKEN }}
# publish_dir: blog/dist
- name: 部署到 OSS
run: 'npx @web.worker/s3-upload-folder --dist dist --ak ${{secrets.AK}} --sk ${{secrets.SK}} --bucket ${{secrets.BUCKET}} --region ${{secrets.REGION}} --endpoint ${{secrets.ENDPOINT}} --prefix /'