Skip to content

fix: fix Last component position #73

fix: fix Last component position

fix: fix Last component position #73

Workflow file for this run

name: Build and Upload to CDN
on:
push:
branches:
- master
jobs:
build-and-upload:
env:
CDN_URL: ${{ secrets.CDN_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm install cos-nodejs-sdk-v5 --no-save
- name: Print dist/index.html after build
run: cat dist/index.html
- name: Upload to COS
run: node scripts/upload-to-cos.cjs
env:
COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }}
COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
COS_BUCKET: ${{ secrets.COS_BUCKET }}
COS_REGION: ${{ secrets.COS_REGION }}
COS_DOMAIN: ${{ secrets.COS_DOMAIN }}
- name: Print dist/index.html after upload
run: cat dist/index.html