-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (36 loc) · 990 Bytes
/
fe-oss.yaml
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: fe-oss
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v3
# https://github.com/actions/setup-node
- name: install node
uses: actions/setup-node@v3
with:
node-version: "18"
# https://github.com/pnpm/action-setup
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.1
- name: build dist
run: |
cd ./src/fe
pnpm install
pnpm build-cloud
- name: upload files to OSS
uses: fangbinwei/aliyun-oss-website-action@v1
with:
accessKeyId: ${{ secrets.ACCESS_KEY_ID }}
accessKeySecret: ${{ secrets.ACCESS_KEY_SECRET }}
bucket: flow-pdf-fe
endpoint: https://oss-cn-hangzhou.aliyuncs.com
folder: ./src/fe/dist