Skip to content

Merge commit 'd57ef497364203266c2c613efd19c1ecb71bead8' #21

Merge commit 'd57ef497364203266c2c613efd19c1ecb71bead8'

Merge commit 'd57ef497364203266c2c613efd19c1ecb71bead8' #21

Workflow file for this run

name: fe-oss
on:
push:
paths:
- ".github/workflows/fe-oss.yaml"
- "src/fe/**"
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