feat: clear comment #36
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: Package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-upload-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install package | |
run: npm install | |
- name: Clean And Algolia | |
run: ./node_modules/.bin/hexo clean && ./node_modules/.bin/hexo algolia | |
- name: Build project | |
run: npm run build | |
- name: Deploy Tencent Cloud COS | |
uses: zkqiang/tencent-cos-action@v0.1.0 | |
with: | |
args: delete -r -f / && upload -r ./public/ / | |
secret_id: ${{ secrets.SECRET_ID }} | |
secret_key: ${{ secrets.SECRET_KEY }} | |
bucket: ${{ secrets.BUCKET }} | |
region: ${{ secrets.REGION }} |