Skip to content

update&build(资源更新):更新干员头像,技能图标,干员数据,模组图标 #1453

update&build(资源更新):更新干员头像,技能图标,干员数据,模组图标

update&build(资源更新):更新干员头像,技能图标,干员数据,模组图标 #1453

Workflow file for this run

name: build & publish
on:
push:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'build')
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.0.0
- name: Build
run: |
npm install
npm run build
- name: Upload COS
uses: zkqiang/[email protected]
with:
args: delete -r -f / && upload -r ./dist/ /
secret_id: ${{ secrets.COS_SECRET_ID }}
secret_key: ${{ secrets.COS_SECRET_KEY }}
bucket: ${{ secrets.COS_BUCKET }}
region: ap-beijing
- name: Refresh Tencent Cloud CDN Purge Cache
uses: keithnull/[email protected]
env:
SECRET_ID: ${{ secrets.COS_SECRET_ID}}
SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
PATHS: "https://dev.yituliu.cn/"
FLUSH_TYPE: "flush" # optional