Skip to content

## 没写完,还在写 #80

## 没写完,还在写

## 没写完,还在写 #80

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Note
on:
workflow_dispatch:
push:
branches: [ hexo ]
pull_request:
branches: [ hexo ]
jobs:
build:
runs-on: ubuntu-latest
name: Deploy_Blog
steps:
- name: Checkout
uses: actions/checkout@v2
# - name: Cache node modules
# uses: actions/cache@v1
# id: cache
# with:
# path: node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- name: Install Dependencies
# if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Hexo Deploy
uses: sma11black/hexo-action@master
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
user_name: daizc311 # (or delete this input setting to use bot account)
user_email: [email protected] # (or delete this input setting to use bot account)
commit_msg: ${{ github.event.head_commit.message }} # (or delete this input setting to use hexo default settings)
- name: Get the output
run: |
echo "${{ steps.deploy.outputs.notify }}"