Update index.html #5
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: MainWorkflow | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Build Page | |
run: | | |
npm install | |
npm install -g hexo-cli | |
hexo generate | |
- uses: manyuanrong/[email protected] | |
with: | |
# endpoint 可以去oss控制台上查看 | |
endpoint: "oss-cn-hongkong.aliyuncs.com" | |
# 使用我们之前配置在secrets里面的accesskeys来配置ossutil | |
access-key-id: ${{ secrets.ACCESS_KEY_ID }} | |
access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }} | |
- name: Deply To OSS | |
run: ossutil cp public oss://enok-blog/ -rf |