This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
Merge remote-tracking branch 'origin/master' #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BuildOnCOS | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- README.md | |
- LICENSE | |
- .github/* | |
- .gitattributes | |
jobs: | |
PushToCOS: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
check-latest: false | |
cache: 'npm' | |
cache-dependency-path: package.json | |
- name: Install Packages | |
run: npm install | |
- name: Build project | |
run: npm run build | |
- name: Upload COS | |
uses: zkqiang/[email protected] | |
with: | |
args: upload -r ./dist/client/ / | |
secret_id: ${{ secrets.SECRET_ID }} | |
secret_key: ${{ secrets.SECRET_KEY }} | |
bucket: ${{ secrets.BUCKET }} | |
region: ap-hongkong | |