Skip to content

Merge pull request #135 from wj23027/feat/dashboard_for_user #58

Merge pull request #135 from wj23027/feat/dashboard_for_user

Merge pull request #135 from wj23027/feat/dashboard_for_user #58

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Publish CI
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm build
env:
CI: false
- name: Publish to OSS
uses: tvrcgo/upload-to-oss@master
with:
key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
region: ${{ secrets.OSS_REGION }}
bucket: ${{ secrets.OSS_BUCKET }}
assets: |
./build/**:${{ secrets.OSS_TARGET_PATH }}