Skip to content

新学期更新学校重新排的宿舍号&静态校历图更新 #130

新学期更新学校重新排的宿舍号&静态校历图更新

新学期更新学校重新排的宿舍号&静态校历图更新 #130

Workflow file for this run

name: MP CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm i
# 从 secrets.UPLOAD_PRIVATE_KEY 生成私钥文件
# see Project/Settings/Secrets
- name: Generate private key for upload
run: echo "$UPLOAD_PRIVATE_KEY" > private.key
env:
UPLOAD_PRIVATE_KEY: ${{ secrets.UPLOAD_PRIVATE_KEY }}
# 上传代码
- name: Upload to WeChat
run: npx mp-ci upload ./ --pkp=./private.key