Skip to content

移除builtinSwitch、移除天气相关函数 #31

移除builtinSwitch、移除天气相关函数

移除builtinSwitch、移除天气相关函数 #31

Workflow file for this run

name: auto-deploy
on:
push:
branches: [typescript]
jobs:
archive-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
- name: get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY.MM.DD
utcOffset: "+08:00"
- name: action-zip
uses: montudor/[email protected]
with:
args: zip -qq -r blinker-js-typescript-${{steps.version.outputs.prop}}.zip . -x .github/* -x .git/*
- name: create json
id: jsonfile
uses: jsdaniell/[email protected]
with:
name: "nodejs.json"
json: '{"img": "assets/sdk/nodejs.png", "text": "NodeJs (TypeScript)", "update": "${{ steps.current-time.outputs.formattedTime}}", "version": "${{steps.version.outputs.prop}}", "github": "https://github.com/blinker-iot/blinker-js", "document": "https://diandeng.tech/doc/javascript-support", "download": "sdk/blinker-js-typescript-${{steps.version.outputs.prop}}.zip" }'
- name: upload zip
uses: garygrossgarten/[email protected]
with:
local: blinker-js-typescript-${{steps.version.outputs.prop}}.zip
remote: ${{ secrets.REMOTE_PATH }}/blinker-js-typescript-${{steps.version.outputs.prop}}.zip
host: ${{ secrets.SERVER_IP }}
username: ubuntu
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
recursive: true
- name: upload json
uses: garygrossgarten/[email protected]
with:
local: nodejs.json
remote: ${{ secrets.REMOTE_PATH }}/nodejs.json
host: ${{ secrets.SERVER_IP }}
username: ubuntu
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
recursive: true